summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/system/ntapi_tt_get_csr_port_handle_addr_by_logic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system/ntapi_tt_get_csr_port_handle_addr_by_logic.c b/src/system/ntapi_tt_get_csr_port_handle_addr_by_logic.c
index 827bbb4..bccdd7a 100644
--- a/src/system/ntapi_tt_get_csr_port_handle_addr_by_logic.c
+++ b/src/system/ntapi_tt_get_csr_port_handle_addr_by_logic.c
@@ -177,7 +177,7 @@ void ** __ntapi_tt_get_csr_port_handle_addr_by_logic_x86_64(void)
if ((ptr_move_rcx_rel->__move == 0x48) &&
(ptr_move_rcx_rel->__rcx == 0x8b) &&
- (ptr_move_rcx_rel->__relative == 0x0d))
+ (ptr_move_rcx_rel->__relative == 0x0d)) {
/* bingo */
/* make our type-punned tyrant compiler happy */
prelative = (int32_t *)&(ptr_move_rcx_rel->__arg_32_relative);
@@ -187,6 +187,7 @@ void ** __ntapi_tt_get_csr_port_handle_addr_by_logic_x86_64(void)
return (void **)(
(uintptr_t)&ptr_move_rcx_rel->__opcode_next_any
+ relative);
+ }
}
}
}