Jacek Caban : shdocvw: Added UpdateUI implementation.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 10 10:18:03 CDT 2007


Module: wine
Branch: master
Commit: 8bafc2b67b586a6513060e0bcb2cd27418212c99
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8bafc2b67b586a6513060e0bcb2cd27418212c99

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Sep  9 20:11:03 2007 +0200

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 1637cc3..f64ae09 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 aa231c0..8f80505 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;
 }
 




More information about the wine-cvs mailing list