From 88b2d85a756d835c4567f09ab4b023dc6a218395 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 27 Aug 2018 20:50:29 -0400 Subject: [PATCH] print error code --- vnrhook/hijack/texthook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);