leslie_alistair@hotmail.com: mshtml: Implement IHTMLElement get_document (try 3)

18 views
Skip to first unread message

Patchwatcher

unread,
Oct 31, 2008, 7:27:08 PM10/31/08
to wine-patch...@googlegroups.com
From: Alistair Leslie-Hughes <leslie_...@hotmail.com>
Subject: mshtml: Implement IHTMLElement get_document (try 3)
Date: Sat, 01 Nov 2008 09:42:47 +1100

Hi,

Changelog:
mshtml: Implement IHTMLElement get_document

Best Regards
Alistair Leslie-Hughes


>From 1a43e596799c78062939825fec35b853eea25e6f Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_...@hotmail.com>
Date: Thu, 30 Oct 2008 21:38:23 +1100
Subject: [PATCH] Implement IHTMLElement get_document
To: wine-patches <wine-p...@winehq.org>

---
dlls/mshtml/htmlelem.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 4e7b747..7cc1a62 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -579,8 +579,16 @@ static HRESULT WINAPI HTMLElement_get_onmouseup(IHTMLElement *iface, VARIANT *p)
static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch **p)
{
HTMLElement *This = HTMLELEM_THIS(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ if(!p)
+ return E_POINTER;
+
+ *p = (IDispatch*)This->node.doc;
+ IDispatch_AddRef(*p);
+
+ return S_OK;
}

static HRESULT WINAPI HTMLElement_put_title(IHTMLElement *iface, BSTR v)
--
1.5.4.3

Reply all
Reply to author
Forward
0 new messages