mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
lv2: Check ipc_key value if object is process shared
This commit is contained in:
parent
d2f3ada312
commit
7475be99ab
2 changed files with 10 additions and 0 deletions
|
@ -420,6 +420,11 @@ error_code sys_event_port_connect_ipc(ppu_thread& ppu, u32 eport_id, u64 ipc_key
|
|||
|
||||
sys_event.warning("sys_event_port_connect_ipc(eport_id=0x%x, ipc_key=0x%x)", eport_id, ipc_key);
|
||||
|
||||
if (ipc_key == 0)
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
||||
auto queue = lv2_event_queue::find(ipc_key);
|
||||
|
||||
std::lock_guard lock(id_manager::g_mutex);
|
||||
|
|
|
@ -162,6 +162,11 @@ public:
|
|||
{
|
||||
case SYS_SYNC_PROCESS_SHARED:
|
||||
{
|
||||
if (ipc_key == 0)
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
||||
switch (flags)
|
||||
{
|
||||
case SYS_SYNC_NEWLY_CREATED:
|
||||
|
|
Loading…
Add table
Reference in a new issue