Commit 55c03ad4 authored by Indrek Altpere's avatar Indrek Altpere Committed by Alexandre Julliard

mshtml: Add NULL check to avoid crashing due to Gecko bug.

parent bd5e184b
...@@ -1343,6 +1343,11 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p) ...@@ -1343,6 +1343,11 @@ HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)
return E_FAIL; return E_FAIL;
} }
if(!nsstyle) {
ERR("GetComputedStyle returned NULL nsstyle\n");
return E_FAIL;
}
ret = heap_alloc_zero(sizeof(HTMLCurrentStyle)); ret = heap_alloc_zero(sizeof(HTMLCurrentStyle));
if(!ret) { if(!ret) {
nsIDOMCSSStyleDeclaration_Release(nsstyle); nsIDOMCSSStyleDeclaration_Release(nsstyle);
......
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