mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-22 03:40:30 +00:00
Fix sys_spu_thread_group_disconnect_event
This commit is contained in:
parent
7c6b558647
commit
e0e1c729cd
@ -1919,17 +1919,15 @@ error_code sys_spu_thread_group_disconnect_event(ppu_thread& ppu, u32 id, u32 et
|
|||||||
if (!ep)
|
if (!ep)
|
||||||
{
|
{
|
||||||
sys_spu.error("sys_spu_thread_group_disconnect_event(): unknown event type (%d)", et);
|
sys_spu.error("sys_spu_thread_group_disconnect_event(): unknown event type (%d)", et);
|
||||||
return CELL_EINVAL;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No error checking is performed
|
||||||
|
|
||||||
std::lock_guard lock(group->mutex);
|
std::lock_guard lock(group->mutex);
|
||||||
|
|
||||||
if (!lv2_obj::check(*ep))
|
|
||||||
{
|
|
||||||
return CELL_EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
ep->reset();
|
ep->reset();
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user