Module: wine Branch: refs/heads/master Commit: 5ba7b1778c1b42a5ea7f5c250d6f530117971e41 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5ba7b1778c1b42a5ea7f5c25...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Dec 6 10:57:29 2005 +0100
shdocvw: Added get_Document implementation.
---
dlls/shdocvw/webbrowser.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c index 9907e5b..8110950 100644 --- a/dlls/shdocvw/webbrowser.c +++ b/dlls/shdocvw/webbrowser.c @@ -260,8 +260,14 @@ static HRESULT WINAPI WebBrowser_get_Con static HRESULT WINAPI WebBrowser_get_Document(IWebBrowser2 *iface, IDispatch **ppDisp) { WebBrowser *This = WEBBROWSER_THIS(iface); - FIXME("(%p)->(%p)\n", This, ppDisp); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, ppDisp); + + *ppDisp = NULL; + if(This->document) + IUnknown_QueryInterface(This->document, &IID_IDispatch, (void**)ppDisp); + + return S_OK; }
static HRESULT WINAPI WebBrowser_get_TopLevelContainer(IWebBrowser2 *iface, VARIANT_BOOL *pBool)