(MESS) Stop trashing DiskCopy 4.2 images that don't have tags. [R. Belmont]

This commit is contained in:
R. Belmont 2014-09-11 02:34:21 +00:00
parent 8ff9bc63e4
commit 66944180b0

View File

@ -470,8 +470,13 @@ static UINT32 apple35_get_offset(floppy_image_legacy *floppy, int head, int trac
{
*tag_offset = sector_index * 12;
if (*tag_offset >= tag->tag_size)
{
*tag_offset = ~0;
*tag_offset += tag->tag_offset;
}
else
{
*tag_offset += tag->tag_offset;
}
}
return sector_index * 0x200 + tag->data_offset;
}