From 6e25fea16ae7ac48aef9cc2fd34c91ea90c76711 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 16 Jul 2020 19:51:44 +0200 Subject: [PATCH] use not_an_error in sys_spinlock_trylock --- rpcs3/Emu/Cell/Modules/sys_spinlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/sys_spinlock.cpp b/rpcs3/Emu/Cell/Modules/sys_spinlock.cpp index 0f03eafbd3..fdfefc92bd 100644 --- a/rpcs3/Emu/Cell/Modules/sys_spinlock.cpp +++ b/rpcs3/Emu/Cell/Modules/sys_spinlock.cpp @@ -37,7 +37,7 @@ error_code sys_spinlock_trylock(vm::ptr> lock) if (*lock || lock->exchange(0xabadcafe)) { - return CELL_EBUSY; + return not_an_error(CELL_EBUSY); } return CELL_OK;