Module: wine Branch: master Commit: c9e6a96318eea4386cfd59164cae859bcba4c908 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9e6a96318eea4386cfd59164c...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Sep 26 14:37:16 2012 +0200
mshtml: Added better IActiveScriptSiteWindow implementation.
---
dlls/mshtml/script.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/script.c b/dlls/mshtml/script.c index 9aa875a..d1b4c41 100644 --- a/dlls/mshtml/script.c +++ b/dlls/mshtml/script.c @@ -469,15 +469,21 @@ static ULONG WINAPI ActiveScriptSiteWindow_Release(IActiveScriptSiteWindow *ifac static HRESULT WINAPI ActiveScriptSiteWindow_GetWindow(IActiveScriptSiteWindow *iface, HWND *phwnd) { ScriptHost *This = impl_from_IActiveScriptSiteWindow(iface); - FIXME("(%p)->(%p)\n", This, phwnd); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, phwnd); + + if(!This->window || !This->window->base.outer_window || !This->window->base.outer_window->doc_obj) + return E_UNEXPECTED; + + *phwnd = This->window->base.outer_window->doc_obj->hwnd; + return S_OK; }
static HRESULT WINAPI ActiveScriptSiteWindow_EnableModeless(IActiveScriptSiteWindow *iface, BOOL fEnable) { ScriptHost *This = impl_from_IActiveScriptSiteWindow(iface); FIXME("(%p)->(%x)\n", This, fEnable); - return E_NOTIMPL; + return S_OK; }
static const IActiveScriptSiteWindowVtbl ActiveScriptSiteWindowVtbl = {