Commit aa30f442 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Silence common invalid QueryInterface FIXMEs.

parent 8c2b994c
...@@ -1412,6 +1412,8 @@ static void test_QueryInterface(IUnknown *unk) ...@@ -1412,6 +1412,8 @@ static void test_QueryInterface(IUnknown *unk)
{ {
IQuickActivate *qa = (IQuickActivate*)0xdeadbeef; IQuickActivate *qa = (IQuickActivate*)0xdeadbeef;
IRunnableObject *runnable = (IRunnableObject*)0xdeadbeef; IRunnableObject *runnable = (IRunnableObject*)0xdeadbeef;
IPerPropertyBrowsing *propbrowse = (void*)0xdeadbeef;
IOleCache *cache = (void*)0xdeadbeef;
HRESULT hres; HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IQuickActivate, (void**)&qa); hres = IUnknown_QueryInterface(unk, &IID_IQuickActivate, (void**)&qa);
...@@ -1421,6 +1423,14 @@ static void test_QueryInterface(IUnknown *unk) ...@@ -1421,6 +1423,14 @@ static void test_QueryInterface(IUnknown *unk)
hres = IUnknown_QueryInterface(unk, &IID_IRunnableObject, (void**)&runnable); hres = IUnknown_QueryInterface(unk, &IID_IRunnableObject, (void**)&runnable);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres); ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
ok(runnable == NULL, "runnable=%p, ezpected NULL\n", runnable); ok(runnable == NULL, "runnable=%p, ezpected NULL\n", runnable);
hres = IUnknown_QueryInterface(unk, &IID_IPerPropertyBrowsing, (void**)&propbrowse);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
ok(runnable == NULL, "runnable=%p, ezpected NULL\n", runnable);
hres = IUnknown_QueryInterface(unk, &IID_IOleCache, (void**)&cache);
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
ok(cache == NULL, "runnable=%p, ezpected NULL\n", runnable);
} }
static void test_WebBrowser(void) static void test_WebBrowser(void)
......
...@@ -108,6 +108,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid ...@@ -108,6 +108,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}else if(IsEqualGUID(&IID_IRunnableObject, riid)) { }else if(IsEqualGUID(&IID_IRunnableObject, riid)) {
TRACE("(%p)->(IID_IRunnableObject %p) returning NULL\n", This, ppv); TRACE("(%p)->(IID_IRunnableObject %p) returning NULL\n", This, ppv);
return E_NOINTERFACE; return E_NOINTERFACE;
}else if(IsEqualGUID(&IID_IPerPropertyBrowsing, riid)) {
TRACE("(%p)->(IID_IPerPropertyBrowsing %p) returning NULL\n", This, ppv);
return E_NOINTERFACE;
}else if(IsEqualGUID(&IID_IOleCache, riid)) {
TRACE("(%p)->(IID_IOleCache %p) returning NULL\n", This, ppv);
return E_NOINTERFACE;
} }
if(*ppv) { if(*ppv) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment