From 81805945ce78016a6b494b997614632d5c7c43db Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 17 Jul 2021 12:30:32 +0300 Subject: [PATCH] LV2: Fix IPC key reading from attributes --- rpcs3/Emu/Cell/lv2/sys_sync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_sync.h b/rpcs3/Emu/Cell/lv2/sys_sync.h index d0c84834d0..a96fd236ce 100644 --- a/rpcs3/Emu/Cell/lv2/sys_sync.h +++ b/rpcs3/Emu/Cell/lv2/sys_sync.h @@ -199,7 +199,7 @@ public: template static inline u64 get_key(const T& attr) { - return (attr.pshared != SYS_SYNC_PROCESS_SHARED ? +attr.ipc_key : 0); + return (attr.pshared == SYS_SYNC_PROCESS_SHARED ? +attr.ipc_key : 0); } template