mshtml: Correctly handle NULL active element in IHTMLDocument2::get_activeElement.
This commit is contained in:
parent
0d0110970e
commit
5135144d3a
|
@ -282,6 +282,11 @@ static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTM
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!nselem) {
|
||||||
|
*p = NULL;
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
hres = get_elem(This->doc_node, nselem, &elem);
|
hres = get_elem(This->doc_node, nselem, &elem);
|
||||||
nsIDOMElement_Release(nselem);
|
nsIDOMElement_Release(nselem);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
|
|
Loading…
Reference in New Issue