Skip to content

Commit

Permalink
Fixes detection of more DOS images with bad signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jul 22, 2024
1 parent 0a967c4 commit f64e90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lsdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ int dos_read(struct atr_image *atr, const char *atr_name, int atari_list, int lo
if( memcmp(vtoc + 5, "\0\0\0\0\0", 5) )
return 1;
if( atr->sec_count > 720 || free_sect > alloc_sect ||
(alloc_sect != 707 && alloc_sect != 709) )
(alloc_sect < 707 || alloc_sect > 709) )
return 1;
// Assume DOS 2
signature = alloc_sect == 707 ? 2 : 1;
signature = alloc_sect != 709 ? 2 : 1;
bad_sig = " (with bad signature)";
}
// Detect MyDOS images with bad signature, this happens in 720 DD images
Expand Down

0 comments on commit f64e90e

Please sign in to comment.