diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-02-25 18:54:45 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-02-26 02:24:30 +0000 |
commit | 579ec0dced9a72c331591a479705a459cf715b64 (patch) | |
tree | f75c68e993a1c277651c948ce83491fefbffe72d /src/hook.c | |
parent | b32415ad03703e7471ba78de6a93ff251fca3e87 (diff) |
Remove some unnecessary and/or confusing stuff
Diffstat (limited to 'src/hook.c')
-rw-r--r-- | src/hook.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ void *hook_inline(void *func_, void *target) { // dumb hack: if we hit some thunk that immediately jumps elsewhere (which // seems common for win32 API functions), hook the underlying thing instead. while (*func == X86_JMPIW) func += mem_loads32(func + 1) + 5; - if (!os_mprot(func, 5, PAGE_EXECUTE_READWRITE)) return false; + if (!os_mprot(func, 5, PAGE_EXECUTE_READWRITE)) return 0; int len = 0; for (;;) { // FIXME: these cases may result in somewhat dodgy error messaging. They |