aboutsummaryrefslogtreecommitdiff
path: root/source/nds
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-29 22:24:20 -0500
committerNebuleon Fumika2013-01-29 22:24:20 -0500
commitf0fab191e48f165c551980d724bba2f26a764795 (patch)
treeb975c189538a532c966d6c5785ad60d09f3263c4 /source/nds
parent4ff8eab0d01c76c58e1165e5c63f87e1f5134033 (diff)
downloadsnes9x2005-f0fab191e48f165c551980d724bba2f26a764795.tar.gz
snes9x2005-f0fab191e48f165c551980d724bba2f26a764795.tar.bz2
snes9x2005-f0fab191e48f165c551980d724bba2f26a764795.zip
Prevent a file descriptor becoming unusable if the emulator configuration file is not in the correct format.
Diffstat (limited to 'source/nds')
-rw-r--r--source/nds/gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index c57c660..fd9007b 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -4335,6 +4335,10 @@ int load_emu_config_file(void)
fclose(fp);
return 0;
}
+ else
+ {
+ fclose(fp);
+ }
}
//have no confiure file, set default