[FAT] Return current clusters when a file overflows the FAT.

This commit is contained in:
2022-12-08 14:14:47 +00:00
parent 6d4329cc3f
commit 7cdbbb3ea9

View File

@@ -264,7 +264,7 @@ namespace Aaru.Filesystems
nextCluster <= FAT16_RESERVED)
{
if(nextCluster > _fatEntries.Length)
return null;
break;
clusters.Add(nextCluster);
nextCluster = _fatEntries[nextCluster];
@@ -274,7 +274,7 @@ namespace Aaru.Filesystems
nextCluster <= FAT12_RESERVED)
{
if(nextCluster > _fatEntries.Length)
return null;
break;
clusters.Add(nextCluster);
nextCluster = _fatEntries[nextCluster];