mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 05:45:03 -06:00
Return parameter error if the result of funcFixed is invalid.
This commit is contained in:
parent
1dc87a0704
commit
4620fa8bd8
@ -400,8 +400,14 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version,
|
|||||||
// Fixed Callback
|
// Fixed Callback
|
||||||
funcFixed(ppu, result, listGet, fixedSet);
|
funcFixed(ppu, result, listGet, fixedSet);
|
||||||
|
|
||||||
|
// check result for validity - CELL_SAVEDATA_CBRESULT_OK_LAST_NOCONFIRM is not a valid result for funcFixed
|
||||||
|
if (result->result < CELL_SAVEDATA_CBRESULT_ERR_INVALID || result->result >= CELL_SAVEDATA_CBRESULT_OK_LAST_NOCONFIRM)
|
||||||
|
{
|
||||||
|
return CELL_SAVEDATA_ERROR_PARAM;
|
||||||
|
}
|
||||||
|
|
||||||
// skip all following steps if OK_LAST
|
// skip all following steps if OK_LAST
|
||||||
if (result->result == CELL_SAVEDATA_CBRESULT_OK_LAST || result->result == CELL_SAVEDATA_CBRESULT_OK_LAST_NOCONFIRM)
|
if (result->result == CELL_SAVEDATA_CBRESULT_OK_LAST)
|
||||||
{
|
{
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user