Jacek Caban : mshtml: Added IHTMLDOMNode2::get_ownerDocument implementation .

Alexandre Julliard julliard at winehq.org
Tue Sep 22 13:55:06 CDT 2009


Module: wine
Branch: master
Commit: 58d67c275863ed34cc476ed1447da5f9a4411962
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=58d67c275863ed34cc476ed1447da5f9a4411962

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Sep 20 18:59:57 2009 +0200

mshtml: Added IHTMLDOMNode2::get_ownerDocument implementation.

---

 dlls/mshtml/htmlnode.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c
index 399355b..8c83e56 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




More information about the wine-cvs mailing list