mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
use not_an_error in sys_spinlock_trylock
This commit is contained in:
parent
5e7c6853c2
commit
6e25fea16a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue