print error code

This commit is contained in:
Akash Mozumdar 2018-08-27 20:50:29 -04:00
parent 4979349a56
commit 88b2d85a75

View File

@ -373,7 +373,7 @@ void TextHook::RemoveReadCode()
void TextHook::ClearHook() void TextHook::ClearHook()
{ {
WaitForSingleObject(hmMutex, 0); 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(); if (hp.type & DIRECT_READ) RemoveReadCode();
else RemoveHookCode(); else RemoveHookCode();
NotifyHookRemove(hp.address); NotifyHookRemove(hp.address);