This commit is contained in:
Nekotekina 2015-10-20 18:55:34 +03:00
parent b3b07c8248
commit 8cfabf0ead
2 changed files with 6 additions and 7 deletions

View file

@ -298,6 +298,11 @@ never_inline s32 savedata_op(PPUThread& ppu, u32 operation, u32 version, vm::cpt
return CELL_SAVEDATA_ERROR_CBRESULT;
}
if (!fixedSet->dirName)
{
return CELL_SAVEDATA_ERROR_PARAM;
}
for (s32 i = 0; i < save_entries.size(); i++)
{
if (save_entries[i].dirName == fixedSet->dirName.get_ptr())
@ -309,10 +314,7 @@ never_inline s32 savedata_op(PPUThread& ppu, u32 operation, u32 version, vm::cpt
if (selected == -1)
{
if (fixedSet->dirName)
{
save_entry.dirName = fixedSet->dirName.get_ptr();
}
save_entry.dirName = fixedSet->dirName.get_ptr();
}
}