GBA Context: Fix file open check

This commit is contained in:
Jeffrey Pfau 2016-01-02 02:16:01 -08:00
parent e65d12d35e
commit a7801b3963
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ struct VFile* GBADirectorySetOpenPath(struct GBADirectorySet* dirs, const char*
}
} else {
file = VFileOpen(path, O_RDONLY);
if (!filter(file)) {
if (file && !filter(file)) {
file->close(file);
file = 0;
}