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);