mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mshtml: Fixed error handling in IHTMLFormElement::item in IE9+ mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
86475d5bab
commit
7da84dfe97
1 changed files with 5 additions and 2 deletions
|
@ -540,8 +540,11 @@ static HRESULT WINAPI HTMLFormElement_item(IHTMLFormElement *iface, VARIANT name
|
||||||
*pdisp = NULL;
|
*pdisp = NULL;
|
||||||
|
|
||||||
if(V_VT(&name) == VT_I4) {
|
if(V_VT(&name) == VT_I4) {
|
||||||
if(V_I4(&name) < 0)
|
if(V_I4(&name) < 0) {
|
||||||
return E_INVALIDARG;
|
*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);
|
return htmlform_item(This, V_I4(&name), pdisp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue