Commit 2868e935 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Fix out-of-bounds props access.

parent 8718a23b
......@@ -1736,7 +1736,7 @@ static HRESULT WINAPI DispatchEx_DeleteMemberByDispID(IDispatchEx *iface, DISPID
DWORD idx = id - DISPID_DYNPROP_0;
dynamic_prop_t *prop;
if(!get_dynamic_data(This) || idx > This->dynamic_data->prop_cnt)
if(!get_dynamic_data(This) || idx >= This->dynamic_data->prop_cnt)
return S_OK;
prop = This->dynamic_data->props + idx;
......
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