mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add support for negative sectors to read and write sector calls in images.
This commit is contained in:
@@ -69,7 +69,7 @@ public sealed class DragonFlyBSD : IPartition
|
||||
|
||||
if(sectorOffset + nSectors >= imagePlugin.Info.Sectors) return false;
|
||||
|
||||
ErrorNumber errno = imagePlugin.ReadSectors(sectorOffset, nSectors, out byte[] sectors, out _);
|
||||
ErrorNumber errno = imagePlugin.ReadSectors(sectorOffset, false, nSectors, out byte[] sectors, out _);
|
||||
|
||||
if(errno != ErrorNumber.NoError || sectors.Length < 2048) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user