Commit 466f31dc authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mshtml: Fix realloc size vs element count mixup.

parent e1f1912a
......@@ -1119,7 +1119,7 @@ static HRESULT get_prop(HTMLStorage *This, const WCHAR *name, DISPID *dispid)
}
if(is_power_of_2(This->num_props)) {
BSTR *new_props = realloc(This->props, max(This->num_props * 2 * sizeof(BSTR*), 1));
BSTR *new_props = realloc(This->props, max(This->num_props * 2, 1) * sizeof(*This->props));
if(!new_props)
return E_OUTOFMEMORY;
This->props = new_props;
......
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