all repos — mgba @ a7801b3963d195ce315e2eda1c05924f4d1b0cfe

mGBA Game Boy Advance Emulator

GBA Context: Fix file open check
Jeffrey Pfau jeffrey@endrift.com
Sat, 02 Jan 2016 02:16:01 -0800
commit

a7801b3963d195ce315e2eda1c05924f4d1b0cfe

parent

e65d12d35e406d6d62aa859611c2feb560d7801f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/context/directories.csrc/gba/context/directories.c

@@ -92,7 +92,7 @@ dirs->archive = 0;

} } else { file = VFileOpen(path, O_RDONLY); - if (!filter(file)) { + if (file && !filter(file)) { file->close(file); file = 0; }