Skip to content

Commit 36c1eb6

Browse files
committed
Fix WinThread.teb_syswow
1 parent 4bbdb53 commit 36c1eb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def test_thread_teb_syswow(self, proc32):
511511
assert teb_syswow.NtTib.Self.value == teb_syswow._base_addr
512512
assert teb_syswow.ProcessEnvironmentBlock.value == teb_syswow.peb._base_addr
513513
# Check type of teb.peb is the correct subclass (with modules & co)
514-
assert teb.peb.modules
514+
assert teb_syswow.peb.modules
515515

516516
def test_thread_owner_from_tid(self, proc32_64):
517517
thread = proc32_64.threads[0]

windows/winobject/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def teb_syswow_base(self):
916916

917917
@property
918918
def teb_syswow(self):
919-
return RemoteTEB64.from_address(self.teb_syswow_base)
919+
return RemoteTEB64(self.teb_syswow_base, self.owner)
920920

921921

922922
def exit(self, code=0):

0 commit comments

Comments
 (0)