Jacek Caban : mshtml: Return S_OK in IHTMLPluginsCollection::refresh.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 6 06:27:29 CST 2015


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Mar  6 13:01:29 2015 +0100

mshtml: Return S_OK in IHTMLPluginsCollection::refresh.

---

 dlls/mshtml/omnavigator.c | 7 +++++--
 dlls/mshtml/tests/dom.c   | 6 ++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c
index e943b70..c70fac6 100644
--- a/dlls/mshtml/omnavigator.c
+++ b/dlls/mshtml/omnavigator.c
@@ -459,8 +459,11 @@ static HRESULT WINAPI HTMLPluginsCollection_get_length(IHTMLPluginsCollection *i
 static HRESULT WINAPI HTMLPluginsCollection_refresh(IHTMLPluginsCollection *iface, VARIANT_BOOL reload)
 {
     HTMLPluginsCollection *This = impl_from_IHTMLPluginsCollection(iface);
-    FIXME("(%p)->(%x)\n", This, reload);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%x)\n", This, reload);
+
+    /* Nothing to do here. */
+    return S_OK;
 }
 
 static const IHTMLPluginsCollectionVtbl HTMLPluginsCollectionVtbl = {
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index d164f1b..37749a0 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -5295,6 +5295,12 @@ static void test_plugins_col(IHTMLDocument2 *doc)
     ok(hres == S_OK, "get_length failed: %08x\n", hres);
     ok(!len, "length = %d\n", len);
 
+    hres = IHTMLPluginsCollection_refresh(col, VARIANT_FALSE);
+    ok(hres == S_OK, "refresh failed: %08x\n", hres);
+
+    hres = IHTMLPluginsCollection_refresh(col, VARIANT_TRUE);
+    ok(hres == S_OK, "refresh failed: %08x\n", hres);
+
     ref = IHTMLPluginsCollection_Release(col);
     ok(!ref, "ref=%d\n", ref);
 




More information about the wine-cvs mailing list