mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Override Marshal.SizeOf in Helpers and use it instead of System's.
This commit is contained in:
@@ -34,10 +34,10 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using DiscImageChef.CommonTypes;
|
||||
using DiscImageChef.CommonTypes.Enums;
|
||||
using DiscImageChef.CommonTypes.Structs;
|
||||
using DiscImageChef.Helpers;
|
||||
using Schemas;
|
||||
|
||||
namespace DiscImageChef.DiscImages
|
||||
@@ -84,7 +84,7 @@ namespace DiscImageChef.DiscImages
|
||||
version = version3 ? QCOW_VERSION3 : QCOW_VERSION2,
|
||||
size = sectors * sectorSize,
|
||||
cluster_bits = 16,
|
||||
header_length = (uint)Marshal.SizeOf(typeof(QCow2Header))
|
||||
header_length = (uint)Marshal.SizeOf<QCow2Header>()
|
||||
};
|
||||
|
||||
clusterSize = 1 << (int)qHdr.cluster_bits;
|
||||
|
||||
Reference in New Issue
Block a user