From 7df8e40fc9386c2b17f7d9b4155829be90c01fee Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 19 Jul 2018 14:34:34 -0400 Subject: [PATCH] more error checking --- vnr/texthook/hookman.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/vnr/texthook/hookman.cc b/vnr/texthook/hookman.cc index 63d1f67..ad9500a 100644 --- a/vnr/texthook/hookman.cc +++ b/vnr/texthook/hookman.cc @@ -52,6 +52,7 @@ TextThread *HookManager::FindSingle(DWORD number) void HookManager::SetCurrent(TextThread *it) { HM_LOCK; + if (it == nullptr) return; current->Status() &= ~CURRENT_SELECT; current = it; it->Status() |= CURRENT_SELECT;