Fix WinThread.teb_syswow

This commit is contained in:
hakril
2025-01-31 17:13:33 +01:00
parent 4bbdb538de
commit 36c1eb647f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ class TestProcessWithCheckGarbage(object):
assert teb_syswow.NtTib.Self.value == teb_syswow._base_addr
assert teb_syswow.ProcessEnvironmentBlock.value == teb_syswow.peb._base_addr
# Check type of teb.peb is the correct subclass (with modules & co)
assert teb.peb.modules
assert teb_syswow.peb.modules
def test_thread_owner_from_tid(self, proc32_64):
thread = proc32_64.threads[0]
+1 -1
View File
@@ -916,7 +916,7 @@ class WinThread(Thread):
@property
def teb_syswow(self):
return RemoteTEB64.from_address(self.teb_syswow_base)
return RemoteTEB64(self.teb_syswow_base, self.owner)
def exit(self, code=0):