some fixes

git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@398 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-03-27 19:04:05 +00:00
parent 450dab6fe5
commit a5365695a4
4 changed files with 6 additions and 9 deletions

View file

@ -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)
{