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:
parent
8312539efe
commit
362eed3ae3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue