summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mutex.c b/src/common/mutex.c
index 31202d440..7307f5f15 100644
--- a/src/common/mutex.c
+++ b/src/common/mutex.c
@@ -94,7 +94,7 @@ void ramutex_lock(ramutex *m) {
bool ramutex_trylock(ramutex *m) {
#ifdef WIN32
- if(TryEnterCriticalSection(&m->hMutex) == TRUE)
+ if(TryEnterCriticalSection(&m->hMutex) != FALSE)
return true;
return false;