From 8bafc2b67b586a6513060e0bcb2cd27418212c99 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 9 Sep 2007 20:11:03 +0200 Subject: [PATCH] shdocvw: Added UpdateUI implementation. --- dlls/shdocvw/dochost.c | 9 +++++++-- dlls/shdocvw/tests/webbrowser.c | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/shdocvw/dochost.c b/dlls/shdocvw/dochost.c index 1637cc30791..f64ae090e29 100644 --- a/dlls/shdocvw/dochost.c +++ b/dlls/shdocvw/dochost.c @@ -337,8 +337,13 @@ static HRESULT WINAPI DocHostUIHandler_HideUI(IDocHostUIHandler2 *iface) static HRESULT WINAPI DocHostUIHandler_UpdateUI(IDocHostUIHandler2 *iface) { DocHost *This = DOCHOSTUI_THIS(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; + + TRACE("(%p)\n", This); + + if(!This->hostui) + return S_FALSE; + + return IDocHostUIHandler_UpdateUI(This->hostui); } static HRESULT WINAPI DocHostUIHandler_EnableModeless(IDocHostUIHandler2 *iface, diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index aa231c04b00..8f805051a0d 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -80,6 +80,7 @@ DEFINE_EXPECT(GetHostInfo); DEFINE_EXPECT(GetOptionKeyPath); DEFINE_EXPECT(GetOverridesKeyPath); DEFINE_EXPECT(SetStatusText); +DEFINE_EXPECT(UpdateUI); static const WCHAR wszItem[] = {'i','t','e','m',0}; @@ -678,7 +679,7 @@ static HRESULT WINAPI DocHostUIHandler_HideUI(IDocHostUIHandler2 *iface) static HRESULT WINAPI DocHostUIHandler_UpdateUI(IDocHostUIHandler2 *iface) { - ok(0, "unexpected call\n"); + CHECK_EXPECT(UpdateUI); return E_NOTIMPL; }