mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01: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))
|
if (*lock || lock->exchange(0xabadcafe))
|
||||||
{
|
{
|
||||||
return CELL_EBUSY;
|
return not_an_error(CELL_EBUSY);
|
||||||
}
|
}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue