mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix cluster start calculation for FAT32.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user