mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Removed unneeded value sets.
This commit is contained in:
@@ -59,7 +59,7 @@ namespace DiscImageChef.Partitions
|
||||
byte[] sectors = imagePlugin.ReadSectors(sectorOffset, nSectors);
|
||||
if(sectors.Length < 2048) return false;
|
||||
|
||||
Disklabel64 disklabel = new Disklabel64();
|
||||
Disklabel64 disklabel;
|
||||
IntPtr labelPtr = Marshal.AllocHGlobal(2048);
|
||||
Marshal.Copy(sectors, 0, labelPtr, 2048);
|
||||
disklabel = (Disklabel64)Marshal.PtrToStructure(labelPtr, typeof(Disklabel64));
|
||||
|
||||
Reference in New Issue
Block a user