Commit 8c396ed4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Call HTMLDOMNode_Init directly in HTMLCommentElement_Create.

parent cf35bbd2
......@@ -200,9 +200,7 @@ HRESULT HTMLCommentElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTM
ret->IHTMLCommentElement_iface.lpVtbl = &HTMLCommentElementVtbl;
HTMLElement_Init(&ret->element, doc, NULL, &HTMLCommentElement_dispex);
nsIDOMNode_AddRef(nsnode);
ret->element.node.nsnode = nsnode;
HTMLDOMNode_Init(doc, &ret->element.node, nsnode);
*elem = &ret->element;
return S_OK;
......
......@@ -1776,7 +1776,8 @@ void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElemen
nsIDOMHTMLElement_AddRef(nselem);
This->nselem = nselem;
HTMLDOMNode_Init(doc, &This->node, (nsIDOMNode*)nselem);
if(nselem)
HTMLDOMNode_Init(doc, &This->node, (nsIDOMNode*)nselem);
ConnectionPointContainer_Init(&This->cp_container, (IUnknown*)&This->IHTMLElement_iface);
}
......
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