mshtml: Fix out-of-bounds props access.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8718a23b2e
commit
2868e9350a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue