mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Fix WinThread.teb_syswow
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user