mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add missing CloseFile
This commit is contained in:
parent
2b448bdcad
commit
c079bbf776
1 changed files with 2 additions and 0 deletions
|
@ -205,9 +205,11 @@ bool SavedataParam::Load(SceUtilitySavedataParam* param, int saveId)
|
||||||
}
|
}
|
||||||
if(!pspFileSystem.ReadFile(handle, data_, param->dataBufSize))
|
if(!pspFileSystem.ReadFile(handle, data_, param->dataBufSize))
|
||||||
{
|
{
|
||||||
|
pspFileSystem.CloseFile(handle);
|
||||||
ERROR_LOG(HLE,"Error reading file %s",filePath.c_str());
|
ERROR_LOG(HLE,"Error reading file %s",filePath.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
pspFileSystem.CloseFile(handle);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue