Fix bug 2802274 from VBA1 on sourceforge:
http://sourceforge.net/tracker/index.php?func=detail&aid=2802274&group_id=63889&atid=636220 CPUImportEepromFile file pointer not closed if file size wrong
This commit is contained in:
parent
dc394a3baa
commit
90c02269b1
|
@ -1087,8 +1087,10 @@ bool CPUImportEepromFile(const char *fileName)
|
|||
i++;
|
||||
i += 4;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
fclose(file);
|
||||
return false;
|
||||
}
|
||||
fclose(file);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue