mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-07 10:45:36 -05:00
wutnewlib: fix lock_try_acquire
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user