🎨🎨🎨 Removed methods in images that only returned what's already in the ImageInfo structure.

This commit is contained in:
2017-12-26 02:51:10 +00:00
parent 03a4e286cc
commit a002253fa4
135 changed files with 2111 additions and 8526 deletions

View File

@@ -79,7 +79,7 @@ namespace DiscImageChef.Partitions
Marshal.FreeHGlobal(lblPtr);
// Not much to check but...
ulong deviceSectors = imagePlugin.GetSectors();
ulong deviceSectors = imagePlugin.ImageInfo.Sectors;
ulong deviceSizeAccordingToLabel = label.cylinders * label.heads * label.spt;
if(label.operatingSystem > 4 || label.bootType > 5 || label.partitionCount > 8 ||
deviceSizeAccordingToLabel > deviceSectors || label.firstDataBlock > deviceSectors) return false;