Attempt to fix segfault on VirtualDiscFileSystem::GetFileInfo for files where handler is specified

This commit is contained in:
NCDyson 2016-05-31 06:23:53 -05:00
parent a690492836
commit cc829f31b8

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);