Skip to content

Commit

Permalink
fixed hook test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Apr 8, 2024
1 parent 69b7311 commit 782b438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ char *test_LM_HookCodeEx(struct hook_args *arg)

/* Same fix as `test_LM_HookCode` */
# ifdef _WIN32
lm_address_t offset;
uint32_t offset;

mu_assert("failed to get real function address", LM_ReadMemoryEx(arg->ptargetproc, wait_message_addr + 1, &offset, sizeof(offset)) == 0);
wait_message_addr += offset + 5;
wait_message_addr += (lm_address_t)offset + 5;
printf("<RESOLVED JMP TO: %p> ", (void *)wait_message_addr);
fflush(stdout);
# endif
Expand Down

0 comments on commit 782b438

Please sign in to comment.