From 58d67c275863ed34cc476ed1447da5f9a4411962 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 20 Sep 2009 18:59:57 +0200 Subject: [PATCH] mshtml: Added IHTMLDOMNode2::get_ownerDocument implementation. --- dlls/mshtml/htmlnode.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c index 399355b4c80..8c83e56b0c9 100644 --- a/dlls/mshtml/htmlnode.c +++ b/dlls/mshtml/htmlnode.c @@ -808,8 +808,12 @@ static HRESULT WINAPI HTMLDOMNode2_Invoke(IHTMLDOMNode2 *iface, DISPID dispIdMem static HRESULT WINAPI HTMLDOMNode2_get_ownerDocument(IHTMLDOMNode2 *iface, IDispatch **p) { HTMLDOMNode *This = HTMLDOMNODE2_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, p); + + *p = (IDispatch*)HTMLDOC(&This->doc->basedoc); + IDispatch_AddRef(*p); + return S_OK; } #undef HTMLDOMNODE2_THIS