mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-01 06:10:07 +01:00
sys_prx: Improve sys_prx_get_module_info error checking
This commit is contained in:
parent
ae4f837f57
commit
9c2d94ca1a
|
|
@ -801,7 +801,17 @@ error_code _sys_prx_get_module_info(ppu_thread& ppu, u32 id, u64 flags, vm::ptr<
|
|||
return CELL_EFAULT;
|
||||
}
|
||||
|
||||
if (pOpt->size != pOpt.size() || !pOpt->info)
|
||||
if (pOpt->size != pOpt.size())
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
||||
if (!pOpt->info)
|
||||
{
|
||||
return CELL_EFAULT;
|
||||
}
|
||||
|
||||
if (pOpt->info->size != pOpt->info.size())
|
||||
{
|
||||
return CELL_EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue