From 31dafc441692bb532a40a9d2d30a721b4e46301f Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 2 Aug 2018 20:06:01 -0400 Subject: [PATCH] bugfix --- vnrhook/src/hijack/texthook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnrhook/src/hijack/texthook.cc b/vnrhook/src/hijack/texthook.cc index a4c9e77..6dd86a7 100644 --- a/vnrhook/src/hijack/texthook.cc +++ b/vnrhook/src/hijack/texthook.cc @@ -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; }