mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-10 10:09:22 +00:00
Add missng check for key in cellAudioSetNotifyEventQueue
key is checked once according to hw test.
This commit is contained in:
parent
3be92ec52b
commit
33fe0fdd6b
1 changed files with 5 additions and 0 deletions
|
@ -1376,6 +1376,11 @@ error_code cellAudioSetNotifyEventQueue(u64 key)
|
||||||
return CELL_AUDIO_ERROR_NOT_INIT;
|
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
|
for (auto k : g_audio->keys) // check for duplicates
|
||||||
{
|
{
|
||||||
if (k == key)
|
if (k == key)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue