-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix, in func36 shift down amount total clusters (picked)
Imported from - https://hg.pushbx.org/ecm/edrdos/rev/ec560d130824 - https://hg.pushbx.org/ecm/edrdos/rev/df6931dc0c9a Tracked at #129 Reference FreeDOS implementation: https://github.com/FDOS/kernel/blob/5de2eb1aa01b0129b046cf06338453a233c6597b/kernel/dosfns.c#L838 This loop now shifts right both the 32-bit amount total clusters and the 32-bit amount free clusters. Further, it takes into account the sector size to determine if the returned cluster size (bps times spc) is still below 32 KiB. Previously it only checked for an spc below 64. For large clusters (already > 32 KiB before the loop) the condition of "fit within 32 bits" is not ensured by this revision yet.
- Loading branch information
Showing
1 changed file
with
46 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters