mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-10 04:29:29 +00:00
Fixed a minor bug in the format routine. Only the first catalog
sector could be found up to this point.
This commit is contained in:
parent
0ca49a89f2
commit
216b34549d
|
@ -522,7 +522,7 @@ public class DosFormatDisk extends FormattedDisk {
|
|||
// create catalog sectors
|
||||
byte[] data = new byte[SECTOR_SIZE];
|
||||
for (int sector=firstCatalogSector; sector > 0; sector--) {
|
||||
if (sector == 0) {
|
||||
if (sector > 1) {
|
||||
data[0x01] = CATALOG_TRACK;
|
||||
data[0x02] = (byte)(sector-1);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user