mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-08 16:29:39 +00:00
Return an error for an invalid .bin image.
I have been able to trigger the assert, so I think it needs to become an error. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
03ce472e63
commit
ff3adbda0d
|
@ -78,7 +78,8 @@ ImageError_e ImageOpen( const std::string & pszImageFilename,
|
|||
if (!bExpectFloppy)
|
||||
return eIMAGE_ERROR_UNSUPPORTED;
|
||||
|
||||
_ASSERT(pImageInfo->uNumTracks);
|
||||
if (!pImageInfo->uNumTracks)
|
||||
return eIMAGE_ERROR_UNSUPPORTED;
|
||||
|
||||
*pWriteProtected = pImageInfo->bWriteProtected;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user