Corrected DragonFlyBSD when sector size divided by table size is not

integer.
This commit is contained in:
2017-09-15 07:44:47 +01:00
parent 2d03eb0112
commit 0c2e81bdc4

View File

@@ -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;