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

Hooking function fails due to FindPrevFreeRegion and FindNextFreeRegion returning null #110

Closed
g0dzcsgo opened this issue Feb 17, 2023 · 3 comments

Comments

@g0dzcsgo
Copy link

As the title says, hooking fails due to the FindPrevFreeRegion and FindNextFreeRegion returning null inside of the GetMemoryBlock function. The thing is I can hook something else just fine from the same class, but this does not hook. Any idea why these 2 functions would fail? And it's a valid origin function pointer I am passing.

@m417z
Copy link
Collaborator

m417z commented Feb 17, 2023

See the discussion at #107

@g0dzcsgo
Copy link
Author

See the discussion at #107

I don't know how to make these changes, e.g the change to absolute jumps instead of relative?

@m417z
Copy link
Collaborator

m417z commented Feb 22, 2023

I'm closing the issue in favor of #107
Meanwhile you might want to try this fork: https://github.com/EthanZoneCoding/minhook

@m417z m417z closed this as completed Feb 22, 2023
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

2 participants