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;