mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[FAT] Return current clusters when a file overflows the FAT.
This commit is contained in:
@@ -268,8 +268,8 @@ public sealed partial class FAT
|
||||
else if(_fat16)
|
||||
while(nextCluster is > 0 and <= FAT16_RESERVED)
|
||||
{
|
||||
if(nextCluster > _fatEntries.Length)
|
||||
return null;
|
||||
if(nextCluster >= _fatEntries.Length)
|
||||
break;
|
||||
|
||||
clusters.Add(nextCluster);
|
||||
nextCluster = _fatEntries[nextCluster];
|
||||
@@ -277,8 +277,8 @@ public sealed partial class FAT
|
||||
else
|
||||
while(nextCluster is > 0 and <= FAT12_RESERVED)
|
||||
{
|
||||
if(nextCluster > _fatEntries.Length)
|
||||
return null;
|
||||
if(nextCluster >= _fatEntries.Length)
|
||||
break;
|
||||
|
||||
clusters.Add(nextCluster);
|
||||
nextCluster = _fatEntries[nextCluster];
|
||||
|
||||
Reference in New Issue
Block a user