diff --git a/evthread_win32.c b/evthread_win32.c index 12b8c1e6..795f410f 100644 --- a/evthread_win32.c +++ b/evthread_win32.c @@ -67,7 +67,7 @@ evthread_win32_lock(unsigned mode, void *_lock) { CRITICAL_SECTION *lock = _lock; if ((mode & EVTHREAD_TRY)) { - return TryEnterCriticalSection(lock) != 0; + return ! TryEnterCriticalSection(lock); } else { EnterCriticalSection(lock); return 0;