Re: mshtml: Implement IHTMLElement get_document
30 Oct
2008
30 Oct
'08
12:14 p.m.
Hi Alistair, Alistair Leslie-Hughes wrote:
Hi,
Changelog: mshtml: Implement IHTMLElement get_document
+ *p = NULL; + + if(!This->node.doc->nsdoc) { + WARN("NULL nsdoc\n"); + return E_UNEXPECTED; + } You don't use nsdoc so there is no reason to test it. + hr = IHTMLDocument2_QueryInterface(HTMLDOC(This->node.doc), &IID_IHTMLDocument, (void**)p); + + return hr; You could just cast This->node.doc to IHTMLDocument and call AddRef on result. Jacek
6253
Age (days ago)
6253
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jacek Caban