Commit f8256f96 authored by Tamar Christina's avatar Tamar Christina

Don't exit when even isn't ours

parent 6f957bca
......@@ -903,8 +903,11 @@ waitForJobCompletion ( HANDLE hJob, HANDLE ioPort, DWORD timeout, int *pExitCode
// List of events we can listen to:
while (GetQueuedCompletionStatus (ioPort, &CompletionCode,
&CompletionKey, &Overlapped, timeout)
&& (HANDLE)CompletionKey == hJob) {
&CompletionKey, &Overlapped, timeout)) {
// If event wasn't meant of us, keep listening.
if ((HANDLE)CompletionKey != hJob)
switch (CompletionCode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment