Add missing CloseFile

This commit is contained in:
Xele02 2012-12-11 17:40:26 +01:00
parent 2b448bdcad
commit c079bbf776

View File

@ -205,9 +205,11 @@ bool SavedataParam::Load(SceUtilitySavedataParam* param, int saveId)
}
if(!pspFileSystem.ReadFile(handle, data_, param->dataBufSize))
{
pspFileSystem.CloseFile(handle);
ERROR_LOG(HLE,"Error reading file %s",filePath.c_str());
return false;
}
pspFileSystem.CloseFile(handle);
return true;
}