mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
🎨🎨🎨 Removed methods in images that only returned what's already in the ImageInfo structure.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user