From 8203c4dbb2e727ce608590e41c9e0d990c015b3e Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 4 Apr 2011 13:12:46 +0200 Subject: Another error handling issue on Win32 solved Signed-off-by: Martin Sustrik --- perf/inproc_lat.cpp | 2 +- perf/inproc_thr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'perf') 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; } -- cgit v1.2.3