Skip to content

Commit

Permalink
fixed test for LM_HookCodeEx on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Apr 11, 2024
1 parent e81521b commit 911ac4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ char *test_LM_HookCodeEx(struct hook_args *arg)
# ifdef _WIN32
uint32_t offset;

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

0 comments on commit 911ac4e

Please sign in to comment.