mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix null reference exception in FAT filesystem.
This commit is contained in:
@@ -196,8 +196,8 @@ namespace Aaru.Filesystems
|
||||
|
||||
if((_fat32 && entry.ea_handle << 16 > 0) ||
|
||||
entry.start_cluster > 0)
|
||||
stat.Blocks = _fat32 ? GetClusters((uint)((entry.ea_handle << 16) + entry.start_cluster)).Length
|
||||
: GetClusters(entry.start_cluster).Length;
|
||||
stat.Blocks = _fat32 ? (GetClusters((uint)((entry.ea_handle << 16) + entry.start_cluster))?.Length ?? 0)
|
||||
: (GetClusters(entry.start_cluster)?.Length??0);
|
||||
|
||||
stat.Length = stat.Blocks * stat.BlockSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user