mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Do not try to access root folder on misaligned partitions.
(This would be solved when a the complete FAT implementation is done)
This commit is contained in:
@@ -1073,7 +1073,7 @@ namespace DiscImageChef.Filesystems
|
|||||||
if(extraInfo != null)
|
if(extraInfo != null)
|
||||||
sb.Append(extraInfo);
|
sb.Append(extraInfo);
|
||||||
|
|
||||||
if(root_directory_sector + partition.Start < partition.End)
|
if(root_directory_sector + partition.Start < partition.End && imagePlugin.ImageInfo.xmlMediaType != ImagePlugins.XmlMediaType.OpticalDisc)
|
||||||
{
|
{
|
||||||
byte[] root_directory = imagePlugin.ReadSectors(root_directory_sector + partition.Start, sectors_for_root_directory);
|
byte[] root_directory = imagePlugin.ReadSectors(root_directory_sector + partition.Start, sectors_for_root_directory);
|
||||||
for(int i = 0; i < root_directory.Length; i += 32)
|
for(int i = 0; i < root_directory.Length; i += 32)
|
||||||
|
|||||||
Reference in New Issue
Block a user