mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
sys_prx: Improve sys_prx_get_module_info error checking
This commit is contained in:
parent
ae4f837f57
commit
9c2d94ca1a
1 changed files with 11 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue