mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-18 15:31:35 -06: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 New Issue
Block a user