mirror of https://github.com/mgba-emu/mgba.git
Util: Fix MutexTryLock on Windows
This commit is contained in:
parent
eaa81cb358
commit
d6bccd80f7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue