diff options
author | Yifan Lu | 2016-10-18 22:03:52 -0700 |
---|---|---|
committer | Yifan Lu | 2016-10-18 22:03:52 -0700 |
commit | ee786dee1c25cf11233f3318bec929d1dc05ae42 (patch) | |
tree | cc216a2f2303136709905882802fbbde4802047c /lib/hook-functions.c | |
parent | Moved slab allocator out of substitute (diff) | |
download | substitute-ee786dee1c25cf11233f3318bec929d1dc05ae42.tar.gz |
Added exemem for Vita
Removed unneeded field for hooks
Diffstat (limited to '')
-rw-r--r-- | lib/hook-functions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/hook-functions.c b/lib/hook-functions.c index 3f332f0..f59126a 100644 --- a/lib/hook-functions.c +++ b/lib/hook-functions.c @@ -184,8 +184,7 @@ int substitute_hook_functions(const struct substitute_function_hook *hooks, #endif hi->code = code; hi->arch_dis_ctx = arch; - uintptr_t pc_patch_start = hook->func_addr ? - hook->func_addr : (uintptr_t) code; + uintptr_t pc_patch_start = (uintptr_t) code; int patch_size; bool need_intro_trampoline; if ((ret = check_intro_trampoline(&trampoline_ptr, &trampoline_addr, |