mshtml: Handle NULL nsstyle in HTMLWindow7_getComputedStyle().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-06-28 22:29:46 +03:00 committed by Alexandre Julliard
parent 8312539efe
commit 362eed3ae3
1 changed files with 7 additions and 0 deletions

View File

@ -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;