mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
more error checking
This commit is contained in:
parent
a7a3379050
commit
7df8e40fc9
@ -52,6 +52,7 @@ TextThread *HookManager::FindSingle(DWORD number)
|
|||||||
void HookManager::SetCurrent(TextThread *it)
|
void HookManager::SetCurrent(TextThread *it)
|
||||||
{
|
{
|
||||||
HM_LOCK;
|
HM_LOCK;
|
||||||
|
if (it == nullptr) return;
|
||||||
current->Status() &= ~CURRENT_SELECT;
|
current->Status() &= ~CURRENT_SELECT;
|
||||||
current = it;
|
current = it;
|
||||||
it->Status() |= CURRENT_SELECT;
|
it->Status() |= CURRENT_SELECT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user