< prev index next >

src/jdk.incubator.jpackage/windows/native/libapplauncher/WindowsPlatform.cpp

Print this page

        

@@ -402,16 +402,16 @@
 
     if (value == NULL) {
         return result;
     }
 
-    count = MultiByteToWideChar(CP_THREAD_ACP, MB_ERR_INVALID_CHARS,
+    count = MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS,
                                 value, -1, NULL, 0);
 
     if (count > 0) {
         result.data = new wchar_t[count];
-        result.length = MultiByteToWideChar(CP_THREAD_ACP, MB_ERR_INVALID_CHARS,
+        result.length = MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS,
                                             value, -1, result.data, (int)count);
         if (result.length == 0) {
             delete[] result.data;
             result.data = NULL;
         }
< prev index next >