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