Changeset 1239 for trunk/eraser6/Eraser.Util.FileSystem/Fat32Api.cpp
- Timestamp:
- 9/30/2009 9:01:05 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/eraser6/Eraser.Util.FileSystem/Fat32Api.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util.FileSystem/Fat32Api.cpp
r1238 r1239 65 65 unsigned long long sector = BootSector->ReservedSectorCount + //Reserved area 66 66 BootSector->FatCount * BootSector->Fat32ParameterBlock.SectorsPerFat + //FAT area 67 (static_cast<unsigned long long>(cluster) - 2) * (ClusterSize / SectorSize);67 (static_cast<unsigned long long>(cluster) - 2) * BootSector->SectorsPerCluster; 68 68 return SectorToOffset(sector); 69 69 } … … 105 105 throw gcnew ArgumentException(L"Invalid FAT cluster: cluster is marked bad."); 106 106 else if (fatPtr[cluster] >= 0x0FFFFFF8) 107 return result * ClusterSize;107 return ClusterSizeToSize(result); 108 108 else 109 109 cluster = fatPtr[cluster];
Note: See TracChangeset
for help on using the changeset viewer.
