summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-04-04 13:12:46 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-04-04 13:12:46 +0200
commit8203c4dbb2e727ce608590e41c9e0d990c015b3e (patch)
tree3ffd1c5d2eaea0ccaf2426da70c5836df62dcf04 /perf
parent475ba3849dd6563ce7b70c4db4d0ac85ac83658d (diff)
Another error handling issue on Win32 solved
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'perf')
-rw-r--r--perf/inproc_lat.cpp2
-rw-r--r--perf/inproc_thr.cpp2
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;
}