mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix when only a block is going to be read.
This commit is contained in:
@@ -1520,7 +1520,7 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
if(sectorsForOffset < 0)
|
||||
sectorsForOffset *= -1;
|
||||
|
||||
if(offsetBytes % sectorSize > 0)
|
||||
if(offsetBytes % sectorSize != 0)
|
||||
sectorsForOffset++;
|
||||
}
|
||||
else if(tracks.Any(t => t.TrackType == TrackType.Audio))
|
||||
@@ -1607,6 +1607,9 @@ namespace DiscImageChef.Core.Devices.Dumping
|
||||
}
|
||||
}
|
||||
|
||||
if(blocksToRead == 1)
|
||||
blocksToRead = 2;
|
||||
|
||||
if(_fixOffset && !inData)
|
||||
{
|
||||
// TODO: FreeBSD bug
|
||||
|
||||
Reference in New Issue
Block a user