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:
spacy51 2010-02-24 17:26:35 +00:00
parent dc394a3baa
commit 90c02269b1
1 changed files with 3 additions and 1 deletions

View File

@ -1087,8 +1087,10 @@ bool CPUImportEepromFile(const char *fileName)
i++;
i += 4;
}
} else
} else {
fclose(file);
return false;
}
fclose(file);
return true;
}