-
Notifications
You must be signed in to change notification settings - Fork 11
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
Windows gets incorrect arguments on post-only detours #2
Comments
Scratch that, it's not exactly the same issue with the On prehook a pointer has the address The issue should be reproducible by uncommenting lines 152-155 in this release and taking / inflicting damage on a player. |
Thanks for the heads up. That quirk is actually "documented" in the release post.
I'm assuming this needs some changes to DynamicHooks' design, which I've been holding off of yet. |
All arguments are saved before calling the original function in detours now. Even if there is only a post hook registered. |
We've discussed this at some point before, just getting an issue in for recordkeeping purposes (and because I got bit by this again recently, heh). No rush on this one.
Detours that use only a post-hook on Windows get incorrect arguments. Hotfix is to add a pre-hook.
Issue is present on 2.2.0-detours10.
The text was updated successfully, but these errors were encountered: