From 537f175f52644cb5103a0dd5d8fdf31414771bf2 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 23 Mar 2020 10:35:42 +0200 Subject: [PATCH] Another fixup after #7826 --- rpcs3/Emu/Cell/lv2/sys_lwmutex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_lwmutex.cpp b/rpcs3/Emu/Cell/lv2/sys_lwmutex.cpp index da7984e906..f4cb597435 100644 --- a/rpcs3/Emu/Cell/lv2/sys_lwmutex.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_lwmutex.cpp @@ -64,9 +64,9 @@ error_code _sys_lwmutex_destroy(ppu_thread& ppu, u32 lwmutex_id) } // Wait for all lwcond waiters to quit - if (const s32 old = mutex->lwcond_waiters; old & 0x7fff'ffff) + if (const s32 old = mutex->lwcond_waiters; old != INT32_MIN) { - if (old > 0) + if (old >= 0) { // Sleep queue is no longer empty // Was set to positive value to announce it