Fix cluster start calculation for FAT32.

This commit is contained in:
2019-04-28 17:44:47 +01:00
parent 7b3d5d3f11
commit baf6f46eb2
4 changed files with 11 additions and 18 deletions

View File

@@ -129,8 +129,7 @@ namespace DiscImageChef.Filesystems.FAT
foreach(uint cluster in rootDirectoryClusters)
{
byte[] buffer = image.ReadSectors(firstClusterSector + (cluster - 2) * sectorsPerCluster,
sectorsPerCluster);
byte[] buffer = image.ReadSectors(firstClusterSector + cluster * sectorsPerCluster, sectorsPerCluster);
eaMs.Write(buffer, 0, buffer.Length);
}