summaryrefslogtreecommitdiff
path: root/src/common/mutex.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-26 00:49:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:07:45 +0300
commit070cd0dc6b1665657b5e8196b721eeb412af4809 (patch)
tree30fbb226678e89b4eb964d4b154da3e4bee4dbad /src/common/mutex.c
parentcbf0a832f7e50ef8f2edb85557d44ee08cfec4b3 (diff)
downloadhercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.gz
hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.bz2
hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.xz
hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.zip
Fix checking result from function TryEnterCriticalSection.
Diffstat (limited to 'src/common/mutex.c')
-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;