diff options
Diffstat (limited to 'src/dlls')
-rw-r--r-- | src/dlls/mscoree/unixinterface.cpp | 2 |
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; |