diff --git a/trunk/src/drivers/win/cdlogger.cpp b/trunk/src/drivers/win/cdlogger.cpp index 7c64ed9a..cff4a75e 100644 --- a/trunk/src/drivers/win/cdlogger.cpp +++ b/trunk/src/drivers/win/cdlogger.cpp @@ -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) {