Fix divide-by-zero bug
Detail: Somewhere in the process of adding FAT16/FAT32 support, a bug was was introduced where an attempt was made to calculate the number of sectors in a cluster before the cluster size (in bytes) had been determined. This affected invalid (e.g. blank) image files, as well as old 160K/320K DOS floppies that aren't supposed to contain a valid boot block. Admin: Issue raised by the Raspberry Pi NOOBS team when they failed to set up the DOS partition where FileCore was expecting it to be. Version 1.02. Tagged as 'DOSFS-1_02'
Showing with 15 additions and 11 deletions