summaryrefslogtreecommitdiffstats
path: root/Python/thread_nt.h
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-07-08 22:26:13 (GMT)
committerGeorg Brandl <georg@python.org>2005-07-08 22:26:13 (GMT)
commitaf410b510db2ecee4369ab217692f15bb3be85bc (patch)
tree060167ae7c49524e28fddc427106151dbefe1272 /Python/thread_nt.h
parent8b687cf6839164c552b074c15a26a65a879a3cfc (diff)
downloadcpython-af410b510db2ecee4369ab217692f15bb3be85bc.zip
cpython-af410b510db2ecee4369ab217692f15bb3be85bc.tar.gz
cpython-af410b510db2ecee4369ab217692f15bb3be85bc.tar.bz2
bug [ 1234979 ] Lock.acquire treats only 1 as True
Diffstat (limited to 'Python/thread_nt.h')
-rw-r--r--Python/thread_nt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_nt.h b/Python/thread_nt.h
index 7d2290e..47c776f 100644
--- a/Python/thread_nt.h
+++ b/Python/thread_nt.h
@@ -299,7 +299,7 @@ int PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag)
dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag));
- success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag == 1 ? INFINITE : 0)) == WAIT_OBJECT_0 ;
+ success = aLock && EnterNonRecursiveMutex((PNRMUTEX) aLock, (waitflag ? INFINITE : 0)) == WAIT_OBJECT_0 ;
dprintf(("%ld: PyThread_acquire_lock(%p, %d) -> %d\n", PyThread_get_thread_ident(),aLock, waitflag, success));