Commit 91800118 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 8abf7a8c
...@@ -592,7 +592,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str) ...@@ -592,7 +592,7 @@ static inline WCHAR *heap_strdupAtoW(const char *str)
len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0); len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
ret = heap_alloc(len*sizeof(WCHAR)); ret = heap_alloc(len*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, -1); MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
} }
return ret; return ret;
......
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