Skip to content

Commit

Permalink
Fix deref in cellSaveData log
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom authored and Megamouse committed Apr 12, 2023
1 parent a3f077c commit 17e6ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/Modules/cellSaveData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v

if (file == all_files.cend() || file->second.size() <= fileSet->fileOffset)
{
cellSaveData.error("Failed to open file %s%s (size=%d, fileOffset=%d)", dir_path, file_path, file->second.size(), fileSet->fileOffset);
cellSaveData.error("Failed to open file %s%s (size=%d, fileOffset=%d)", dir_path, file_path, file == all_files.cend() ? -1 : file->second.size(), fileSet->fileOffset);
savedata_result = CELL_SAVEDATA_ERROR_FAILURE;
break;
}
Expand Down

0 comments on commit 17e6ad1

Please sign in to comment.