fixed proper file opening for opening files that dont exist

This commit is contained in:
qeed 2010-09-18 14:20:12 +00:00
parent 983dbd3823
commit 90695b00ac
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext
{ {
//if the archive contained no files, try to open it the old fashioned way //if the archive contained no files, try to open it the old fashioned way
EMUFILE_FILE* fp = FCEUD_UTF8_fstream(fileToOpen,mode); EMUFILE_FILE* fp = FCEUD_UTF8_fstream(fileToOpen,mode);
if(!fp) if(!fp || (fp->get_fp() == NULL))
{ {
return 0; return 0;
} }