[Runner] Fix condition

This commit is contained in:
momo5502 2017-01-30 17:52:18 +01:00
parent 5931c42cc6
commit 678167ca38

View File

@ -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;