| 770 | } |
| 771 | |
| 772 | void hook_patch_addr(void *orig_fun, void** tramp_function, void* my_function) |
| 773 | { |
| 774 | if (!write_tramp_function(orig_fun, tramp_function)) { |
| 775 | LOG(LL_ERROR, LCF_HOOK, "Aborting hook patch because trampoline generation failed for %p", orig_fun); |
| 776 | return; |
| 777 | } |
| 778 | overwrite_orig_function(orig_fun, my_function); |
| 779 | } |
| 780 | |
| 781 | } |
no test coverage detected