summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-11-25 23:33:01 +0100
committerJan Vorlicek <janvorli@microsoft.com>2015-11-25 23:33:01 +0100
commit59fefe83a1cc3136ff50faf6ef7c243dc5e36065 (patch)
tree4f709f319f3ba1426a47797ccf6d29aefc21c306
parentd2727e3e580974d594237d7f414bcc563ab12af3 (diff)
parent887b6e638a277ec97e80abc2f32e23f3aa5953a4 (diff)
downloadcoreclr-59fefe83a1cc3136ff50faf6ef7c243dc5e36065.tar.gz
coreclr-59fefe83a1cc3136ff50faf6ef7c243dc5e36065.tar.bz2
coreclr-59fefe83a1cc3136ff50faf6ef7c243dc5e36065.zip
Merge pull request #2167 from steveharter/StdArg
Fix unicode input on the command line
-rw-r--r--src/dlls/mscoree/unixinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp
index 013b4451d9..66e35248dd 100644
--- a/src/dlls/mscoree/unixinterface.cpp
+++ b/src/dlls/mscoree/unixinterface.cpp
@@ -62,7 +62,7 @@ static LPCWSTR StringToUnicode(LPCSTR str)
LPWSTR result = new (nothrow) WCHAR[length];
ASSERTE_ALL_BUILDS(result != NULL);
- length = MultiByteToWideChar(CP_ACP, 0, str, length, result, length);
+ length = MultiByteToWideChar(CP_ACP, 0, str, -1, result, length);
ASSERTE_ALL_BUILDS(length != 0);
return result;