Update BoxedProcess.cpp

This commit is contained in:
DavidXanatos 2023-11-26 17:02:11 +01:00
parent e176de2d93
commit 4f8086dded
1 changed files with 1 additions and 1 deletions

View File

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