From ee786dee1c25cf11233f3318bec929d1dc05ae42 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Tue, 18 Oct 2016 22:03:52 -0700 Subject: Added exemem for Vita Removed unneeded field for hooks --- lib/hook-functions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/hook-functions.c') 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, -- cgit v1.2.3