Fix reading FAT32 files starting beyond cluster 65536.

This commit is contained in:
2019-04-27 13:24:49 +01:00
parent c12b0d91db
commit 957326d7a3
2 changed files with 4 additions and 2 deletions

View File

@@ -103,6 +103,8 @@ namespace DiscImageChef.Filesystems.FAT
currentPath = p == 0 ? pieces[0] : $"{currentPath}/{pieces[p]}";
uint currentCluster = entry.Value.start_cluster;
if(fat32) currentCluster += (uint)(entry.Value.ea_handle << 16);
if(directoryCache.TryGetValue(currentPath, out currentDirectory)) continue;
uint[] clusters = GetClusters(currentCluster);