From 10fba143f797b493cbd9b8f87df0f4422892e53c Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 6 Mar 2015 13:01:29 +0100 Subject: [PATCH] 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 e943b709ab2..c70fac675a1 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 d164f1bb6be..37749a0e3b3 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);