Util: Fix MutexTryLock on Windows

This commit is contained in:
Jeffrey Pfau 2016-01-22 22:43:51 -08:00
parent eaa81cb358
commit d6bccd80f7
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ static inline int MutexLock(Mutex* mutex) {
static inline int MutexTryLock(Mutex* mutex) {
if (TryEnterCriticalSection(mutex)) {
return GetLastError();
return 0;
}
return 1;
}