mirror of https://github.com/mgba-emu/mgba.git
GBA Context: Fix file open check
This commit is contained in:
parent
e65d12d35e
commit
a7801b3963
|
@ -92,7 +92,7 @@ struct VFile* GBADirectorySetOpenPath(struct GBADirectorySet* dirs, const char*
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
file = VFileOpen(path, O_RDONLY);
|
file = VFileOpen(path, O_RDONLY);
|
||||||
if (!filter(file)) {
|
if (file && !filter(file)) {
|
||||||
file->close(file);
|
file->close(file);
|
||||||
file = 0;
|
file = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue