aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/threading.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threading.c b/src/threading.c
index 8966dc6..1cec1e0 100644
--- a/src/threading.c
+++ b/src/threading.c
@@ -294,7 +294,7 @@ bool_t THREAD_WAIT_IMPL( THREAD_T *ref, double secs)
294 // WAIT_FAILED more info via GetLastError() 294 // WAIT_FAILED more info via GetLastError()
295 295
296 if (rc == WAIT_TIMEOUT) return FALSE; 296 if (rc == WAIT_TIMEOUT) return FALSE;
297 if (rc != 0) FAIL( "WaitForSingleObject", rc ); 297 if( rc !=0) FAIL( "WaitForSingleObject", rc==WAIT_FAILED ? GetLastError() : rc);
298 *ref= NULL; // thread no longer usable 298 *ref= NULL; // thread no longer usable
299 return TRUE; 299 return TRUE;
300 } 300 }