mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[ISO9660] Do not declare the presence of MODE 2 sub-headers based on long sector content, but on tag presence on media image.
This commit is contained in:
@@ -74,7 +74,9 @@ public sealed partial class ISO9660
|
||||
if(entry.Flags.HasFlag(FileFlags.Directory) || entry.Extents == null || entry.Extents.Count == 0)
|
||||
return ErrorNumber.NoError;
|
||||
|
||||
ErrorNumber errno = _image.ReadSectorLong(entry.Extents[0].extent * _blockSize / 2048, out byte[] sector);
|
||||
ErrorNumber errno = _image.ReadSectorTag(entry.Extents[0].extent * _blockSize / 2048,
|
||||
SectorTagType.CdSectorSubHeader,
|
||||
out byte[] sector);
|
||||
|
||||
if(errno != ErrorNumber.NoError) return errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user