mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
use not_an_error in sys_spinlock_trylock
This commit is contained in:
parent
5e7c6853c2
commit
6e25fea16a
@ -37,7 +37,7 @@ error_code sys_spinlock_trylock(vm::ptr<atomic_be_t<u32>> lock)
|
||||
|
||||
if (*lock || lock->exchange(0xabadcafe))
|
||||
{
|
||||
return CELL_EBUSY;
|
||||
return not_an_error(CELL_EBUSY);
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user