Commit 7da84dfe authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed error handling in IHTMLFormElement::item in IE9+ mode.

parent 86475d5b
......@@ -540,8 +540,11 @@ static HRESULT WINAPI HTMLFormElement_item(IHTMLFormElement *iface, VARIANT name
*pdisp = NULL;
if(V_VT(&name) == VT_I4) {
if(V_I4(&name) < 0)
return E_INVALIDARG;
if(V_I4(&name) < 0) {
*pdisp = NULL;
return dispex_compat_mode(&This->element.node.event_target.dispex) >= COMPAT_MODE_IE9
? S_OK : E_INVALIDARG;
}
return htmlform_item(This, V_I4(&name), pdisp);
}
......
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