fix bug where canceling from archive browser causes emu to freeze

This commit is contained in:
zeromus 2008-07-24 22:44:56 +00:00
parent d30a642358
commit d8f83637e2
1 changed files with 5 additions and 0 deletions

View File

@ -339,6 +339,11 @@ FCEUGI *FCEUI_LoadGameVirtual(const char *name, int OverwriteVidMode)
ipsfn=strdup(FCEU_MakeFName(FCEUMKF_IPS,0,0).c_str()); ipsfn=strdup(FCEU_MakeFName(FCEUMKF_IPS,0,0).c_str());
fp=FCEU_fopen(name,ipsfn,"rb",0); fp=FCEU_fopen(name,ipsfn,"rb",0);
if(!fp)
{
return 0;
}
GetFileBase(fp->filename.c_str()); GetFileBase(fp->filename.c_str());
free(ipsfn); free(ipsfn);