From e58d80c3c55281d0a89001435cbd12ae559b3268 Mon Sep 17 00:00:00 2001 From: hakril Date: Wed, 5 Feb 2025 22:24:40 +0100 Subject: [PATCH] More raise NotImplementedError on x86 -> arm64 heaven gate --- windows/winobject/process.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/winobject/process.py b/windows/winobject/process.py index be48b84..24075d8 100644 --- a/windows/winobject/process.py +++ b/windows/winobject/process.py @@ -925,6 +925,9 @@ class WinThread(Thread): # - Want the TEB of a 64b process # - Want the TEB64 of a Wowprocess # It's the same code for both + if windows.current_process._is_x86_on_arm64 and not self.bitness == 32: + raise NotImplementedError("Crossing heaven gate x86 -> arm64 not implemented") + if windows.current_process.is_wow_64: restype = rctypes.transform_type_to_remote64bits(THREAD_BASIC_INFORMATION) ressize = (ctypes.sizeof(restype))