Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call original function? #1

Open
BadPlayer555 opened this issue Aug 10, 2019 · 3 comments
Open

How to call original function? #1

BadPlayer555 opened this issue Aug 10, 2019 · 3 comments

Comments

@BadPlayer555
Copy link

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; }

@Tizzi
Copy link

Tizzi commented Jul 19, 2023

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

@Tizzi
Copy link

Tizzi commented Jul 19, 2023

oh its simple to avoid the loop tho

@kanadeblisst00
Copy link

oh its simple to avoid the loop tho

excuse me,how to avoid the loop tho?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants