diff --git a/wumgr/Program.cs b/wumgr/Program.cs index e8617ac..f4cbf5a 100644 --- a/wumgr/Program.cs +++ b/wumgr/Program.cs @@ -263,7 +263,7 @@ public static void IniWriteValue(string Section, string Key, string Value, strin WritePrivateProfileString(Section, Key, Value, INIPath != null ? INIPath : GetINIPath()); } - [DllImport("kernel32")] + [DllImport("kernel32", CharSet = CharSet.Unicode)] private static extern int GetPrivateProfileString(string section, string key, string def, [In, Out] char[] retVal, int size, string filePath); public static string IniReadValue(string Section, string Key, string Default = "", string INIPath = null) {