From 8db53589673f59c7ce2d910dc5398e3b0b09e9b0 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 9 Aug 2018 18:59:56 +1000 Subject: [PATCH] Fix generating shortcuts for non-English usernames on Windows --- src/native/interop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/interop.cpp b/src/native/interop.cpp index e97ea6d..9373d02 100644 --- a/src/native/interop.cpp +++ b/src/native/interop.cpp @@ -49,7 +49,7 @@ extern "C" int saveShortcut( } //Append the shortcut name to the folder - MultiByteToWideChar(CP_ACP,0,shortcutPath,-1,wName,MAX_PATH); + MultiByteToWideChar(CP_UTF8,0,shortcutPath,-1,wName,MAX_PATH); // Load the file if it exists, to get the values for anything // that we do not set. Ignore errors, such as if it does not exist.