mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
HLE: add error checks to cellAudioInGetDeviceInfo
This commit is contained in:
parent
3e8a5c6395
commit
3f076d63e3
1 changed files with 5 additions and 0 deletions
|
@ -170,6 +170,11 @@ error_code cellAudioInGetDeviceInfo(u32 deviceNumber, u32 deviceIndex, vm::ptr<C
|
||||||
{
|
{
|
||||||
cellAvconfExt.todo("cellAudioInGetDeviceInfo(deviceNumber=0x%x, deviceIndex=0x%x, info=*0x%x)", deviceNumber, deviceIndex, info);
|
cellAvconfExt.todo("cellAudioInGetDeviceInfo(deviceNumber=0x%x, deviceIndex=0x%x, info=*0x%x)", deviceNumber, deviceIndex, info);
|
||||||
|
|
||||||
|
if (deviceIndex != 0 || !info)
|
||||||
|
{
|
||||||
|
return CELL_AUDIO_IN_ERROR_ILLEGAL_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
auto av_manager = g_fxo->get<avconf_manager>();
|
auto av_manager = g_fxo->get<avconf_manager>();
|
||||||
|
|
||||||
if (deviceNumber >= av_manager->devices.size())
|
if (deviceNumber >= av_manager->devices.size())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue