diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-26 00:49:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-31 23:07:45 +0300 |
commit | 070cd0dc6b1665657b5e8196b721eeb412af4809 (patch) | |
tree | 30fbb226678e89b4eb964d4b154da3e4bee4dbad | |
parent | cbf0a832f7e50ef8f2edb85557d44ee08cfec4b3 (diff) | |
download | hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.gz hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.bz2 hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.tar.xz hercules-070cd0dc6b1665657b5e8196b721eeb412af4809.zip |
Fix checking result from function TryEnterCriticalSection.
-rw-r--r-- | src/common/mutex.c | 2 |
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; |