diff --git a/src/platform/windows/threading.h b/src/platform/windows/threading.h index 37427bf23..efcf3a091 100644 --- a/src/platform/windows/threading.h +++ b/src/platform/windows/threading.h @@ -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; }