win32-dont crash when attempting to open file picked as target for CDLogger save stripped rom operation
This commit is contained in:
parent
d98397ecc1
commit
222816f898
|
@ -414,6 +414,11 @@ void SaveStrippedROM(int invert)
|
|||
if(!GetSaveFileName(&ofn))return;
|
||||
|
||||
fp = fopen(sromfilename,"wb");
|
||||
if(!fp)
|
||||
{
|
||||
FCEUD_PrintError("Error opening target stripped rom file!");
|
||||
return;
|
||||
}
|
||||
|
||||
if(GameInfo->type==GIT_NSF)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue