Merge pull request #8794 from NCDyson/master

fix segfault on VirtualDiscFileSystem::GetFileInfo()
This commit is contained in:
Unknown W. Brackets committed 2016-05-31 08:02:25 -07:00
commit 7814cdced2
1 file changed
+1 -1
+1 -1
View File
@@ -575,7 +575,7 @@ PSPFileInfo VirtualDiscFileSystem::GetFileInfo(std::string filename) {
x.isOnSectorSystem = true;
x.startSector = fileList[fileIndex].firstBlock;
HandlerFileHandle temp;
HandlerFileHandle temp = fileList[fileIndex].handler;
if (temp.Open(basePath, filename, FILEACCESS_READ)) {
x.exists = true;
x.size = temp.Seek(0, FILEMOVE_END);