From 4f8086dded45ff8f215c1d03508c42f8fa5e6e1d Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:02:11 +0100 Subject: [PATCH] Update BoxedProcess.cpp --- SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp index 726fc52f..822b3073 100644 --- a/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp +++ b/SandboxiePlus/QSbieAPI/Sandboxie/BoxedProcess.cpp @@ -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;