Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a3240e

Browse files
committed
bug 1234979 addition
1 parent af410b5 commit 9a3240e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/thread_wince.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ int PyThread_acquire_lock(PyThread_type_lock aLock, int waitflag)
140140
dprintf(("%ld: PyThread_acquire_lock(%p, %d) called\n", PyThread_get_thread_ident(),aLock, waitflag));
141141

142142
#ifndef DEBUG
143-
waitResult = WaitForSingleObject(aLock, (waitflag == 1 ? INFINITE : 0));
143+
waitResult = WaitForSingleObject(aLock, (waitflag ? INFINITE : 0));
144144
#else
145145
/* To aid in debugging, we regularly wake up. This allows us to
146146
break into the debugger */
147147
while (TRUE) {
148148
waitResult = WaitForSingleObject(aLock, waitflag ? 3000 : 0);
149-
if (waitflag==0 || (waitflag==1 && waitResult == WAIT_OBJECT_0))
149+
if (waitflag==0 || (waitflag && waitResult == WAIT_OBJECT_0))
150150
break;
151151
}
152152
#endif

0 commit comments

Comments
 (0)