Skip to content

Commit b40eefd

Browse files
author
Vasily Galkin
committed
fix running linux-built binary on windows
1 parent 7df236f commit b40eefd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PolarisBiosEditor.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,8 @@ static void Main(string[] args)
12121212
}
12131213
else
12141214
{
1215-
Console.Error.WriteLine("Open a AMD Polaris VBIOS file to see it's some detalied info as XML in this console (or pass single filename as argument)");
1215+
Console.Error.WriteLine("Open a AMD Polaris VBIOS file to see it's as XML in this console");
1216+
Console.Error.WriteLine("Or close application and open it with a singe file as argument, for example by drag&drop vbios on .exe file");
12161217
}
12171218
Application.Run(pbe);
12181219
}
@@ -1346,11 +1347,11 @@ public void PrintCheckText(int start, int after_end)
13461347
{
13471348
PrintXml("MostlyText", "", new Attrs{
13481349
{"info", HexRange(start, after_end - start)},
1349-
{"as_text", SafeDecodeAscii(new ArraySegment<byte>(buffer, start, after_end-start).ToArray())},
1350+
{"as_text", SafeDecodeAscii(new ArraySegment<byte>(buffer, start, after_end-start))},
13501351
});
13511352
}
13521353

1353-
public static string SafeDecodeAscii(byte[] bytes)
1354+
public static string SafeDecodeAscii(IEnumerable<byte> bytes)
13541355
{
13551356
var filtered_result = "";
13561357
foreach(var ch in bytes)

0 commit comments

Comments
 (0)