More teb64 fix

This commit is contained in:
hakril
2025-02-01 11:34:09 +01:00
parent 029f7cba35
commit f7542e686c
+1 -1
View File
@@ -917,7 +917,7 @@ class WinThread(Thread):
@property
def teb_syswow(self):
if windows.current_process.bitness == 64:
return RemoteTEB64(self.teb_syswow_base, self)
return RemoteTEB64(self.teb_syswow_base, self.owner)
else: #current is 32bits
return RemoteTEB64(self.teb_syswow_base, windows.syswow64.ReadSyswow64Process(self.owner))