mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
On Xbox FAT, MapBlock should return error if used on a directory not on debug mode.
This commit is contained in:
@@ -50,6 +50,8 @@ namespace DiscImageChef.Filesystems.FATX
|
||||
|
||||
if(err != Errno.NoError) return err;
|
||||
|
||||
if(stat.Attributes.HasFlag(FileAttributes.Directory) && !debug) return Errno.IsDirectory;
|
||||
|
||||
uint[] clusters = GetClusters((uint)stat.Inode);
|
||||
|
||||
if(fileBlock >= clusters.Length) return Errno.InvalidArgument;
|
||||
|
||||
Reference in New Issue
Block a user