wutnewlib: fix lock_try_acquire
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled

This commit is contained in:
GaryOderNichts 2026-02-16 15:21:10 +01:00 committed by fincs
parent afa43f676d
commit 2016e429c1

View File

@ -92,7 +92,7 @@ __SYSCALL(lock_acquire)(_LOCK_T *lock)
int
__SYSCALL(lock_try_acquire)(_LOCK_T *lock)
{
return OSFastMutex_TryLock(__wut_get_mutex(lock));
return OSFastMutex_TryLock(__wut_get_mutex(lock)) ? 0 : 1;
}
void