Skip to content

Commit

Permalink
Correctly flag bad VTOC in DOS 1/2 fs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jul 22, 2024
1 parent b57a524 commit 0a967c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lsdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ int dos_read(struct atr_image *atr, const char *atr_name, int atari_list, int lo
}
// Patch bad VTOC
if( !*bad_sig && signature == 2 && (alloc_sect == 707 || alloc_sect == 708) &&
alloc_sect >= free_sect && bitmap_0 != 0x0F )
alloc_sect >= free_sect && 0 != (bitmap_0 & 0xF0) )
{
bitmap_0 &= 0x0F;
bitmap_360 = 0x7F;
Expand Down

0 comments on commit 0a967c4

Please sign in to comment.