diff options
-rw-r--r-- | perf/inproc_lat.cpp | 2 | ||||
-rw-r--r-- | perf/inproc_thr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/perf/inproc_lat.cpp b/perf/inproc_lat.cpp index ea4b5b1..7c15013 100644 --- a/perf/inproc_lat.cpp +++ b/perf/inproc_lat.cpp @@ -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; } diff --git a/perf/inproc_thr.cpp b/perf/inproc_thr.cpp index 127257c..0fa32f5 100644 --- a/perf/inproc_thr.cpp +++ b/perf/inproc_thr.cpp @@ -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; } |