wutnewlib: fix lock_try_acquire

This commit is contained in:
GaryOderNichts
2026-02-16 15:21:10 +01:00
parent afa43f676d
commit 1df241d84d

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