MultiByteToWideChar() returns characters, not bytes.

This commit is contained in:
Marcus Meissner 2000-11-25 01:20:53 +00:00 committed by Alexandre Julliard
parent 26c0b76bf8
commit c2806fa15e
1 changed files with 1 additions and 1 deletions

View File

@ -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;