From 678167ca38fb710796f5ae5994fe622aa4e62b98 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 30 Jan 2017 17:52:18 +0100 Subject: [PATCH] [Runner] Fix condition --- src/Worker/Runner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Runner.cpp b/src/Worker/Runner.cpp index ea213dbe..6cda2a68 100644 --- a/src/Worker/Runner.cpp +++ b/src/Worker/Runner.cpp @@ -19,7 +19,7 @@ namespace Worker printf("Attaching to parent process %d...\n", this->processId); HANDLE processHandle = OpenProcess(SYNCHRONIZE, FALSE, this->processId); - if (!processHandle || processHandle == INVALID_HANDLE_VALUE && !Runner::isProcessAlive()) + if ((!processHandle || processHandle == INVALID_HANDLE_VALUE) && !Runner::isProcessAlive()) { printf("Unable to attach to parent process\n"); return;