From 6fc8048dc1909ee0a1080689bc427532118fa8f5 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 29 Nov 2021 15:23:46 +0100 Subject: Process active condition was back to front --- zencore/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index b8f0af77c..846dcc67a 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -937,7 +937,7 @@ ProcessMonitor::IsRunning() DWORD ExitCode = 0; GetExitCodeProcess(Proc, &ExitCode); - ProcIsActive = (ExitCode != STILL_ACTIVE); + ProcIsActive = (ExitCode == STILL_ACTIVE); if (!ProcIsActive) { CloseHandle(Proc); -- cgit v1.2.3