Attempt to fix segfault on VirtualDiscFileSystem::GetFileInfo for files where handler is specified
This commit is contained in:
parent
a690492836
commit
cc829f31b8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue