Add leading zeroes for hexadecimal number
This commit is contained in:
parent
6607bb6368
commit
bed9717b24
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user