mshtml: fixed second buffer argument to MultiByteToWideChar

Marcus Meissner <marcus at jet.franken.de>

http://www.winehq.org/pipermail/wine-patches/2009-February/068903.html

svn path=/trunk/; revision=39397
This commit is contained in:
Christoph von Wittich 2009-02-05 06:54:33 +00:00
parent ca07b1a508
commit 2ba1713711
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
len = MultiByteToWideChar(CP_ACP, 0, stra, -1, NULL, 0);
strw = heap_alloc(len*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, stra, -1, strw, -1);
MultiByteToWideChar(CP_ACP, 0, stra, -1, strw, len);
nsfree(stra);
V_BSTR(out) = SysAllocString(strw);

View file

@ -657,7 +657,7 @@ static void parse_post_data(nsIInputStream *post_data_stream, LPWSTR *headers_re
else
headers = heap_alloc((len+1)*sizeof(WCHAR));
len = MultiByteToWideChar(CP_ACP, 0, ptr2, ptr-ptr2, headers+headers_len, -1);
len = MultiByteToWideChar(CP_ACP, 0, ptr2, ptr-ptr2, headers+headers_len, len);
headers_len += len;
ptr2 = ptr;