mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Corrected DragonFlyBSD when sector size divided by table size is not
integer.
This commit is contained in:
@@ -52,6 +52,8 @@ namespace DiscImageChef.PartPlugins
|
||||
{
|
||||
partitions = new List<Partition>();
|
||||
uint nSectors = 2048 / imagePlugin.GetSectorSize();
|
||||
if(2048 % imagePlugin.GetSectorSize() > 0)
|
||||
nSectors++;
|
||||
|
||||
if(sectorOffset + nSectors >= imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user