summaryrefslogtreecommitdiff
path: root/Python/condvar.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-13 22:35:38 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-13 22:35:38 +0200
commitc15df25fef4ab764bf9ae2c0ca9453d0906037d8 (patch)
tree02521ad7c223b54eb7a70faaa0cc4b1af5d6b932 /Python/condvar.h
parent724df745dd8de9a3b51199eb43ad01f9a0775d36 (diff)
parent0c26f2f86d11bc675b918d6dafc7de7b982a10b5 (diff)
downloadcpython-c15df25fef4ab764bf9ae2c0ca9453d0906037d8.tar.gz
Fix ResourceWarnings in test_sax
Diffstat (limited to 'Python/condvar.h')
-rw-r--r--Python/condvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/condvar.h b/Python/condvar.h
index bbb40ba18e..e022dc7938 100644
--- a/Python/condvar.h
+++ b/Python/condvar.h
@@ -241,7 +241,7 @@ _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms)
* but we are safe because we are using a semaphore wich has an internal
* count.
*/
- wait = WaitForSingleObject(cv->sem, ms);
+ wait = WaitForSingleObjectEx(cv->sem, ms, FALSE);
PyMUTEX_LOCK(cs);
if (wait != WAIT_OBJECT_0)
--cv->waiting;