Commit 362eed3a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

mshtml: Handle NULL nsstyle in HTMLWindow7_getComputedStyle().

parent 8312539e
......@@ -2364,6 +2364,13 @@ static HRESULT WINAPI HTMLWindow7_getComputedStyle(IHTMLWindow7 *iface, IHTMLDOM
return E_FAIL;
}
if (!nsstyle)
{
FIXME("nsIDOMWindow_GetComputedStyle returned NULL nsstyle.\n");
*p = NULL;
return S_OK;
}
hres = create_computed_style(nsstyle, dispex_compat_mode(&This->inner_window->event_target.dispex), p);
nsIDOMCSSStyleDeclaration_Release(nsstyle);
return hres;
......
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