all repos — mgba @ d6bccd80f724670c4c17ebf1615f440158ea12db

mGBA Game Boy Advance Emulator

Util: Fix MutexTryLock on Windows
Jeffrey Pfau jeffrey@endrift.com
Fri, 22 Jan 2016 22:43:51 -0800
commit

d6bccd80f724670c4c17ebf1615f440158ea12db

parent

eaa81cb35839d4405ad9e53c65b0e7959e6b00ac

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/windows/threading.hsrc/platform/windows/threading.h

@@ -34,7 +34,7 @@ }

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