Skip to content
Snippets Groups Projects
Commit c2806fa1 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

MultiByteToWideChar() returns characters, not bytes.

parent 26c0b76b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment