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
1 changed files with 5 additions and 0 deletions

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)