Skip to content

Commit d1c9dc4

Browse files
committed
fix missing not in 64 bit check
1 parent fb9807a commit d1c9dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memobj/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def get_hook_tail(self, jump_address: int) -> tuple[list[Instruction], int]:
369369

370370
def get_jump_code(self, hook_address: int, noops_needed: int) -> list[Instruction]:
371371
if self.PRESERVE_RAX:
372-
if self.process.process_64_bit:
372+
if not self.process.process_64_bit:
373373
raise RuntimeError(
374374
"somehow in preserve rax code for non-64 bit process hook"
375375
)

0 commit comments

Comments
 (0)