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;