-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
dosemu2/fdpp
#285Labels
bugSomething isn't workingSomething isn't workingcompatibilityissue may effect compatibilityissue may effect compatibility
Description
This is where function 7303h uses dpb_size or dpb_xsize:
Line 948 in 5de2eb1
| (ISFAT32(dpbp) ? dpbp->dpb_xsize : dpbp->dpb_size); |
But function 36h uses dpb_xsize minus one:
Line 835 in 5de2eb1
| ntotal = dpbp->dpb_xsize - 1; |
Or dpb_size minus 1 on FAT12/FAT16:
Line 859 in 5de2eb1
| *nc = dpbp->dpb_size - 1; |
The field is marked as "number of clusters plus 1":
Line 49 in 5de2eb1
| UWORD dpb_size; /* # of clusters+1 on media */ |
In other words the DPB field gives the maximum valid cluster number (0 and 1 are reserved), plus one gives amount of FAT entries, plus one minus two = minus one gives amount of data clusters.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompatibilityissue may effect compatibilityissue may effect compatibility