Commit 8203c4db authored by Martin Sustrik's avatar Martin Sustrik

Another error handling issue on Win32 solved

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 475ba384
......@@ -196,7 +196,7 @@ int main (int argc, char *argv [])
#if defined ZMQ_HAVE_WINDOWS
DWORD rc2 = WaitForSingleObject (local_thread, INFINITE);
if (rc == WAIT_FAILED) {
if (rc2 == WAIT_FAILED) {
printf ("error in WaitForSingleObject\n");
return -1;
}
......
......@@ -205,7 +205,7 @@ int main (int argc, char *argv [])
#if defined ZMQ_HAVE_WINDOWS
DWORD rc2 = WaitForSingleObject (local_thread, INFINITE);
if (rc == WAIT_FAILED) {
if (rc2 == WAIT_FAILED) {
printf ("error in WaitForSingleObject\n");
return -1;
}
......
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