-
Notifications
You must be signed in to change notification settings - Fork 326
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
It's not work with Mhook_Unhook #2
Comments
@poizan42 @martona This problem is only after merge e58a58c (Merge branch 'fix-remove-max-limit-patch' ) #include <mhook-lib/mhook.h> int (WINAPI* OldMessageBoxA)( int WINAPI NewMessageBoxA( int _tmain(int argc, _TCHAR* argv[])
} |
In function Mhook_SetHook, *ppSystemFunction is assigned to pTrampoline->codeTrampoline. In my test, unhook always return FALSE because TrampolineGet always return NULL. This bug can be fixed by modifying function TrampolineGet pCurrent->pHookFunction to pCurrent->codeTrampoline |
Only hook one api, and call the Mhook_Unhook to restore it, It's bad to TrampolineGet return NULL.
The text was updated successfully, but these errors were encountered: