From 887b6e638a277ec97e80abc2f32e23f3aa5953a4 Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Wed, 25 Nov 2015 15:06:07 -0600 Subject: Fix unicode input on the command line --- src/dlls/mscoree/unixinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dlls') diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp index 2f4e1e97e0..6a2dbd6c74 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; -- cgit v1.2.3