1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

Add missng check for key in cellAudioSetNotifyEventQueue

key is checked once according to hw test.
This commit is contained in:
eladash 2019-09-26 22:51:17 +03:00 committed by Ivan
parent 3be92ec52b
commit 33fe0fdd6b

View File

@ -1376,6 +1376,11 @@ error_code cellAudioSetNotifyEventQueue(u64 key)
return CELL_AUDIO_ERROR_NOT_INIT;
}
if (!lv2_event_queue::find(key))
{
return CELL_AUDIO_ERROR_TRANS_EVENT;
}
for (auto k : g_audio->keys) // check for duplicates
{
if (k == key)