mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix FATX maximum cluster number.
This commit is contained in:
@@ -193,13 +193,13 @@ namespace DiscImageChef.Filesystems.FATX
|
|||||||
uint nextCluster = startCluster;
|
uint nextCluster = startCluster;
|
||||||
|
|
||||||
if(fat16 is null)
|
if(fat16 is null)
|
||||||
while((nextCluster & FAT32_MASK) > 0 && (nextCluster & FAT32_MASK) <= FAT32_BAD)
|
while((nextCluster & FAT32_MASK) > 0 && (nextCluster & FAT32_MASK) <= FAT32_FORMATTED)
|
||||||
{
|
{
|
||||||
clusters.Add(nextCluster);
|
clusters.Add(nextCluster);
|
||||||
nextCluster = fat32[nextCluster];
|
nextCluster = fat32[nextCluster];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
while(nextCluster > 0 && nextCluster <= FAT16_BAD)
|
while(nextCluster > 0 && nextCluster <= FAT16_FORMATTED)
|
||||||
{
|
{
|
||||||
clusters.Add(nextCluster);
|
clusters.Add(nextCluster);
|
||||||
nextCluster = fat16[nextCluster];
|
nextCluster = fat16[nextCluster];
|
||||||
|
|||||||
Reference in New Issue
Block a user