From b9a4a94d610668f7bb39c032adee96213b754990 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 4 Feb 2019 14:31:32 -0500 Subject: [PATCH] dont message removing empty hook --- vnrhook/texthook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnrhook/texthook.cc b/vnrhook/texthook.cc index b3e4e60..12423b4 100644 --- a/vnrhook/texthook.cc +++ b/vnrhook/texthook.cc @@ -285,7 +285,7 @@ void TextHook::RemoveReadCode() void TextHook::Clear() { std::scoped_lock lock(*viewMutex); - ConsoleOutput(REMOVING_HOOK, hp.name); + if (*hp.name) ConsoleOutput(REMOVING_HOOK, hp.name); if (hp.type & DIRECT_READ) RemoveReadCode(); else RemoveHookCode(); NotifyHookRemove(address);