mshtml: Pass buffer length to MultiByteToWideChar instead of -1.

This commit is contained in:
Jacek Caban 2008-03-26 15:24:20 +01:00 committed by Alexandre Julliard
parent 8abf7a8cc9
commit 91800118a8

View File

@ -592,7 +592,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str)
len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
ret = heap_alloc(len*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, -1);
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
}
return ret;