mshtml: Correctly handle NULL active element in IHTMLDocument2::get_activeElement.

This commit is contained in:
Jacek Caban 2014-12-24 14:13:23 +01:00 committed by Alexandre Julliard
parent 0d0110970e
commit 5135144d3a
1 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,11 @@ static HRESULT WINAPI HTMLDocument_get_activeElement(IHTMLDocument2 *iface, IHTM
return E_FAIL;
}
if(!nselem) {
*p = NULL;
return S_OK;
}
hres = get_elem(This->doc_node, nselem, &elem);
nsIDOMElement_Release(nselem);
if(FAILED(hres))