diff --git a/vnrhook/hijack/texthook.cc b/vnrhook/hijack/texthook.cc index 405572d..2684cd4 100644 --- a/vnrhook/hijack/texthook.cc +++ b/vnrhook/hijack/texthook.cc @@ -373,7 +373,7 @@ void TextHook::RemoveReadCode() void TextHook::ClearHook() { WaitForSingleObject(hmMutex, 0); - ConsoleOutput("NextHooker:RemoveHook: enter"); + if (hook_name) ConsoleOutput(("NextHooker: removing hook: " + std::string(hook_name)).c_str()); if (hp.type & DIRECT_READ) RemoveReadCode(); else RemoveHookCode(); NotifyHookRemove(hp.address);