Add leading zeroes for hexadecimal number

This commit is contained in:
Michael Becker 2016-02-04 13:28:46 -05:00
parent 6607bb6368
commit bed9717b24

View File

@ -139,7 +139,7 @@ namespace UniversalEditor.DataFormats.Executable.Apple.MachO
}
default:
{
throw new InvalidDataFormatException("The executable format 0x" + ((uint)magic).ToString("X") + " is not supported");
throw new InvalidDataFormatException("The executable format 0x" + ((uint)magic).ToString("X").PadLeft(8, '0') + " is not supported");
}
}
}