Commit c2806fa1 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

MultiByteToWideChar() returns characters, not bytes.

parent 26c0b76b
......@@ -883,7 +883,7 @@ Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc)
if (lpSrc) {
INT len = MultiByteToWideChar(CP_ACP,0,lpSrc,-1,NULL,0);
LPWSTR ptr = COMCTL32_ReAlloc (*lppDest, len);
LPWSTR ptr = COMCTL32_ReAlloc (*lppDest, len*sizeof(WCHAR));
if (!ptr)
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment