mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
imd: Don't crash when trying to put a 80-track image in a 40-track drive
This commit is contained in:
parent
198d896c12
commit
905e758b93
@ -503,6 +503,11 @@ bool imd_format::load(io_generic *io, uint32_t form_factor, const std::vector<ui
|
||||
m_trackmult = 2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (maxtrack > 42)
|
||||
return false;
|
||||
}
|
||||
|
||||
pos = savepos;
|
||||
while(pos < size) {
|
||||
|
Loading…
Reference in New Issue
Block a user