From 655f7ce8a2cd3781a0bbfd14b863938f07644d98 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 29 Feb 2020 22:25:06 +0200 Subject: [PATCH] cellSaveData: Add null funcStat check it's ordered specially for some functions --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index 9d59b38388..0a824dea37 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -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)) {