Open BadPlayer555 opened 5 years ago
me too idk how to call original function. cuz when I call it ran in to infinite loop. which trigger the exception again. and redirect to my hook function and stuck in this loop
oh its simple to avoid the loop tho
oh its simple to avoid the loop tho
excuse me,how to avoid the loop tho?
Disable the exception handler before calling original, call original, re-enable
Hi I was wondering how to call the original function of the hooked function. I have tried create my get original function but it instantly crashed the application that I am trying to hook.
template<typename T> T LeoHook::GetOriginal() { return (T)og_fun; }