Fix incorrect PIC formatting

This commit is contained in:
Matt Nadareski
2020-07-16 14:45:51 -07:00
parent 1e28fcad2e
commit 445cc173ce
2 changed files with 2 additions and 2 deletions

View File

@@ -2330,7 +2330,7 @@ namespace DICUI.DiscImageCreator
try
{
byte[] picBytes = File.ReadAllBytes(picPath);
string hex = BitConverter.ToString(picBytes, 0).Replace("-", string.Empty);
string hex = BitConverter.ToString(picBytes).Replace("-", string.Empty);
return Regex.Replace(hex, ".{32}", "$0\n");
}
catch

View File

@@ -1078,7 +1078,7 @@ namespace DICUI.Utilities
string last = null;
for (int i = 0; i < output.Count; )
{
if (output[i] == last)
if (output[i] == last && string.IsNullOrWhiteSpace(last))
{
output.RemoveAt(i);
}