aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-29 15:23:46 +0100
committerMartin Ridgers <[email protected]>2021-11-29 15:23:46 +0100
commit6fc8048dc1909ee0a1080689bc427532118fa8f5 (patch)
tree664ea418f7f56d76b53a4e50aed8ee9240b51e11 /zencore/thread.cpp
parentstd::fs::path is a wide character string under the hood (diff)
downloadzen-6fc8048dc1909ee0a1080689bc427532118fa8f5.tar.xz
zen-6fc8048dc1909ee0a1080689bc427532118fa8f5.zip
Process active condition was back to front
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp2
1 files changed, 1 insertions, 1 deletions
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);