Module: wine Branch: master Commit: f5c5951a3c1ea5ef10333eae4418fe0078e8181f URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5c5951a3c1ea5ef10333eae44...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Thu Oct 30 21:38:23 2008 +1100
mshtml: Implement IHTMLElement get_document.
---
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)