From 33fe0fdd6bc4f98fdb6c77fe657fbc63550c9a21 Mon Sep 17 00:00:00 2001 From: eladash Date: Thu, 26 Sep 2019 22:51:17 +0300 Subject: [PATCH] Add missng check for key in cellAudioSetNotifyEventQueue key is checked once according to hw test. --- rpcs3/Emu/Cell/Modules/cellAudio.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellAudio.cpp b/rpcs3/Emu/Cell/Modules/cellAudio.cpp index 15c354b855..002f08196c 100644 --- a/rpcs3/Emu/Cell/Modules/cellAudio.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAudio.cpp @@ -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)