Update BoxedProcess.cpp
This commit is contained in:
parent
e176de2d93
commit
4f8086dded
|
@ -370,7 +370,7 @@ bool CBoxedProcess::TestSuspended()
|
|||
hThread = nNextThread;
|
||||
|
||||
ULONG IsTerminated = 0;
|
||||
if (NT_SUCCESS(NtQueryInformationThread(hThread, ThreadIsTerminated, &IsTerminated, sizeof(ULONG), NULL)) && IsTerminated)
|
||||
if (!NT_SUCCESS(NtQueryInformationThread(hThread, ThreadIsTerminated, &IsTerminated, sizeof(ULONG), NULL)) || IsTerminated)
|
||||
continue;
|
||||
|
||||
ULONG SuspendCount = 0;
|
||||
|
|
Loading…
Reference in New Issue