LV2: Fix IPC key reading from attributes

This commit is contained in:
Eladash
2021-07-17 12:30:32 +03:00
committed by Megamouse
parent 70a3c5d440
commit 81805945ce
+1 -1
View File
@@ -199,7 +199,7 @@ public:
template <typename T>
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 <typename T, typename F>