diff options
Diffstat (limited to 'lib/hook-functions.c')
-rw-r--r-- | lib/hook-functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hook-functions.c b/lib/hook-functions.c index faadd82..6d53a0d 100644 --- a/lib/hook-functions.c +++ b/lib/hook-functions.c @@ -207,7 +207,8 @@ int substitute_hook_functions(const struct substitute_function_hook *hooks, * ending make_jump_patch call) */ if ((ret = transform_dis_main(code, &trampoline_ptr, pc_patch_start, &pc_patch_end, (uintptr_t) trampoline_ptr, - &arch, hi->offset_by_pcdiff))) + &arch, hi->offset_by_pcdiff, + thread_safe ? TRANSFORM_DIS_BAN_CALLS : 0))) goto end; uintptr_t dpc = pc_patch_end; |