better fix

This commit is contained in:
sum2012 2013-09-04 23:14:39 +08:00
parent 3d20b8d7b0
commit f941b09909

View File

@ -526,7 +526,7 @@ bool SavedataParam::Load(SceUtilitySavedataParam *param, const std::string &save
if(DecryptSave(decryptMode, data_base, &saveSize, &align_len, ((param->key[0] != 0)?cryptKey:0)) == 0)
{
if (Memory::IsValidAddress(u32(data_)) && Memory::IsValidAddress(u32(data_base)))
if (param->dataBuf.IsValid())
memcpy(data_, data_base, saveSize);
saveDone = true;
}