Auto-detect UTF8 instead of assuming ANSI for device names.
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenRA.Platforms.Default
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
var str = Marshal.PtrToStringAnsi(next);
|
var str = Marshal.PtrToStringAuto(next);
|
||||||
next += str.Length + 1;
|
next += str.Length + 1;
|
||||||
devices.Add(str);
|
devices.Add(str);
|
||||||
} while (Marshal.ReadByte(next) != 0);
|
} while (Marshal.ReadByte(next) != 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user