shdocvw: Silence QueryInterface FIXME.
This commit is contained in:
parent
651fc5a289
commit
042ecec8b6
|
@ -2436,6 +2436,7 @@ static void test_QueryInterface(IUnknown *unk)
|
||||||
IOleCache *cache = (void*)0xdeadbeef;
|
IOleCache *cache = (void*)0xdeadbeef;
|
||||||
IObjectWithSite *site = (void*)0xdeadbeef;
|
IObjectWithSite *site = (void*)0xdeadbeef;
|
||||||
IViewObjectEx *viewex = (void*)0xdeadbeef;
|
IViewObjectEx *viewex = (void*)0xdeadbeef;
|
||||||
|
IOleLink *link = (void*)0xdeadbeef;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = IUnknown_QueryInterface(unk, &IID_IQuickActivate, (void**)&qa);
|
hres = IUnknown_QueryInterface(unk, &IID_IQuickActivate, (void**)&qa);
|
||||||
|
@ -2466,6 +2467,10 @@ static void test_QueryInterface(IUnknown *unk)
|
||||||
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(viewex == NULL, "viewex=%p, expected NULL\n", viewex);
|
ok(viewex == NULL, "viewex=%p, expected NULL\n", viewex);
|
||||||
|
|
||||||
|
hres = IUnknown_QueryInterface(unk, &IID_IOleLink, (void**)&link);
|
||||||
|
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
|
||||||
|
ok(link == NULL, "link=%p, expected NULL\n", link);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_WebBrowser(BOOL do_download)
|
static void test_WebBrowser(BOOL do_download)
|
||||||
|
|
|
@ -127,6 +127,9 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
|
||||||
}else if(IsEqualGUID(&IID_IViewObjectEx, riid)) {
|
}else if(IsEqualGUID(&IID_IViewObjectEx, riid)) {
|
||||||
TRACE("(%p)->(IID_IViewObjectEx %p) returning NULL\n", This, ppv);
|
TRACE("(%p)->(IID_IViewObjectEx %p) returning NULL\n", This, ppv);
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
|
}else if(IsEqualGUID(&IID_IOleLink, riid)) {
|
||||||
|
TRACE("(%p)->(IID_IOleLink %p) returning NULL\n", This, ppv);
|
||||||
|
return E_NOINTERFACE;
|
||||||
}else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
|
}else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue