Merge pull request #1 from Nukotan/patch

Fix for games played stay unzipped
This commit is contained in:
Twinaphex 2014-06-23 17:03:00 +02:00
commit 4d3f7bedbc

View File

@ -35,6 +35,8 @@ bool MDFNFILE::ApplyIPS(void *unused)
// even if it errors out.
bool MDFNFILE::MakeMemWrapAndClose(void *fp)
{
bool ret = FALSE;
location = 0;
::fseek((FILE *)fp, 0, SEEK_END);
@ -45,10 +47,10 @@ bool MDFNFILE::MakeMemWrapAndClose(void *fp)
goto fail;
::fread(f_data, 1, f_size, (FILE *)fp);
return TRUE;
ret = TRUE;
fail:
fclose((FILE*)fp);
return FALSE;
return ret;
}
MDFNFILE::MDFNFILE()