X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fconfig.c;h=e2a23955e65b71869e0415d1f09a8f84a1d9b689;hb=08fe8094f754d7d7da4d9183d7a0c07abd4fc8b6;hp=a1808ee7091e75be4a34992b3209e29a9df8475d;hpb=7b802576b284e113c637324e583a3a44e0e8e871;p=picodrive.git diff --git a/platform/common/config.c b/platform/common/config.c index a1808ee..e2a2395 100644 --- a/platform/common/config.c +++ b/platform/common/config.c @@ -353,7 +353,7 @@ int config_writelrom(const char *fname) int size; FILE *f; - if (strlen(lastRomFile) == 0) return 0; + if (strlen(lastRomFile) == 0) return -1; f = fopen(fname, "r"); if (f != NULL) @@ -694,7 +694,7 @@ int config_readsect(const char *fname, const char *section) FILE *f; f = fopen(fname, "r"); - if (f == NULL) return 0; + if (f == NULL) return -1; if (section != NULL) {