This commit is contained in:
Akash Mozumdar 2018-08-02 20:06:01 -04:00
parent 42585984c0
commit 31dafc4416

View File

@ -716,6 +716,7 @@ int TextHook::ClearHook()
{ {
WaitForSingleObject(hmMutex, 0); WaitForSingleObject(hmMutex, 0);
int err = RemoveHook(); int err = RemoveHook();
NotifyHookRemove(hp.address);
if (hook_name) { if (hook_name) {
delete[] hook_name; delete[] hook_name;
hook_name = nullptr; hook_name = nullptr;
@ -725,7 +726,6 @@ int TextHook::ClearHook()
// current_available = this; // current_available = this;
currentHook--; currentHook--;
ReleaseMutex(hmMutex); ReleaseMutex(hmMutex);
NotifyHookRemove(hp.address);
return err; return err;
} }