From ee0522be8149b7d95e2fcbfabf6fb79f2c8e9ebc Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 17 Jan 2018 19:22:00 +0000 Subject: [PATCH] Change VMDK hwversion to unsigned integer. --- DiscImageChef.DiscImages/VMware.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DiscImageChef.DiscImages/VMware.cs b/DiscImageChef.DiscImages/VMware.cs index 5ac6f2fdc..beff8c07c 100644 --- a/DiscImageChef.DiscImages/VMware.cs +++ b/DiscImageChef.DiscImages/VMware.cs @@ -111,7 +111,7 @@ namespace DiscImageChef.DiscImages ulong grainSize; uint[] gTable; bool hasParent; - int hwversion; + uint hwversion; ImageInfo imageInfo; string imageType; uint maxCachedGrains; @@ -867,7 +867,7 @@ namespace DiscImageChef.DiscImages { ("adapter_type", typeof(string), "Type of adapter type. Possible values: ide, lsilogic, buslogic, legacyESX."), - ("hwversion", typeof(int), "VDMK hardware version."), ("sparse", typeof(bool), "Use sparse extents."), + ("hwversion", typeof(uint), "VDMK hardware version."), ("sparse", typeof(bool), "Use sparse extents."), ("split", typeof(bool), "Split data file at 2GiB.") }; public IEnumerable KnownExtensions => new[] {".vmdk"}; @@ -898,7 +898,7 @@ namespace DiscImageChef.DiscImages if(options.TryGetValue("hwversion", out string tmpValue)) { - if(!int.TryParse(tmpValue, out hwversion)) + if(!uint.TryParse(tmpValue, out hwversion)) { ErrorMessage = "Invalid value for hwversion option"; return false;