notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.40a fixes, pt2
[picodrive.git]
/
platform
/
common
/
config.c
diff --git
a/platform/common/config.c
b/platform/common/config.c
index
a1808ee
..
e2a2395
100644
(file)
--- a/
platform/common/config.c
+++ b/
platform/common/config.c
@@
-353,7
+353,7
@@
int config_writelrom(const char *fname)
int size;
FILE *f;
int size;
FILE *f;
- if (strlen(lastRomFile) == 0) return
0
;
+ if (strlen(lastRomFile) == 0) return
-1
;
f = fopen(fname, "r");
if (f != NULL)
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");
FILE *f;
f = fopen(fname, "r");
- if (f == NULL) return
0
;
+ if (f == NULL) return
-1
;
if (section != NULL)
{
if (section != NULL)
{