cellSaveData: Add null funcStat check

it's ordered specially for some functions
This commit is contained in:
Eladash 2020-02-29 22:25:06 +02:00 committed by Ivan
parent c11074a128
commit 655f7ce8a2

View File

@ -1052,6 +1052,12 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
// Get save stats // Get save stats
{ {
if (!funcStat)
{
// ****** sysutil savedata parameter error : 20 ******
return {CELL_SAVEDATA_ERROR_PARAM, "20"};
}
fs::stat_t dir_info{}; fs::stat_t dir_info{};
if (!fs::stat(dir_path, dir_info)) if (!fs::stat(dir_path, dir_info))
{ {