cellSaveData: Add null funcStat check

it's ordered specially for some functions
This commit is contained in:
Eladash authored and Ivan committed 2020-03-01 00:14:45 +03:00
1 parent c11074a128
commit 655f7ce8a2
1 file changed
+6
+6
View File
@@ -1052,6 +1052,12 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
// Get save stats
{
if (!funcStat)
{
// ****** sysutil savedata parameter error : 20 ******
return {CELL_SAVEDATA_ERROR_PARAM, "20"};
}
fs::stat_t dir_info{};
if (!fs::stat(dir_path, dir_info))
{