mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
minor condition change
there's no guarantee that the function will return 1 on success, at least not in the documentation
This commit is contained in:
1 parent
7b88bd7918
commit
ade958043c
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ public:
|
||||
|
||||
bool trylock() {
|
||||
#ifdef _WIN32
|
||||
return TryEnterCriticalSection(&mut_) == TRUE;
|
||||
return TryEnterCriticalSection(&mut_) != FALSE;
|
||||
#else
|
||||
return pthread_mutex_trylock(&mut_) != EBUSY;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user