Commit b885ce8f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

mshtml: Allocate smaller cookies buffer size in HTMLDocument_get_cookie.

parent 8bc118cf
......@@ -708,7 +708,7 @@ static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
return S_OK;
}
*p = SysAllocStringLen(NULL, size-1);
*p = SysAllocStringLen(NULL, size/sizeof(WCHAR)-1);
if(!*p)
return E_OUTOFMEMORY;
......
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