shdocvw: Return S_OK in IOleObject::SetHostNames.
This commit is contained in:
parent
ae7b2c914b
commit
be11c75729
|
@ -355,8 +355,11 @@ static HRESULT WINAPI OleObject_SetHostNames(IOleObject *iface, LPCOLESTR szCont
|
||||||
LPCOLESTR szContainerObj)
|
LPCOLESTR szContainerObj)
|
||||||
{
|
{
|
||||||
WebBrowser *This = OLEOBJ_THIS(iface);
|
WebBrowser *This = OLEOBJ_THIS(iface);
|
||||||
FIXME("(%p)->(%s, %s)\n", This, debugstr_w(szContainerApp), debugstr_w(szContainerObj));
|
|
||||||
return E_NOTIMPL;
|
TRACE("(%p)->(%s, %s)\n", This, debugstr_w(szContainerApp), debugstr_w(szContainerObj));
|
||||||
|
|
||||||
|
/* We have nothing to do here. */
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
|
static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
|
||||||
|
|
|
@ -1019,6 +1019,16 @@ static void test_GetMiscStatus(IOleObject *oleobj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void test_SetHostNames(IOleObject *oleobj)
|
||||||
|
{
|
||||||
|
HRESULT hres;
|
||||||
|
|
||||||
|
static const WCHAR test_appW[] = {'t','e','s','t',' ','a','p','p',0};
|
||||||
|
|
||||||
|
hres = IOleObject_SetHostNames(oleobj, test_appW, (void*)0xdeadbeef);
|
||||||
|
ok(hres == S_OK, "SetHostNames failed: %08x\n", hres);
|
||||||
|
}
|
||||||
|
|
||||||
static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
|
static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
|
||||||
{
|
{
|
||||||
IOleObject *oleobj;
|
IOleObject *oleobj;
|
||||||
|
@ -1032,6 +1042,7 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
test_GetMiscStatus(oleobj);
|
test_GetMiscStatus(oleobj);
|
||||||
|
test_SetHostNames(oleobj);
|
||||||
|
|
||||||
hres = IUnknown_QueryInterface(unk, &IID_IOleInPlaceObject, (void**)&inplace);
|
hres = IUnknown_QueryInterface(unk, &IID_IOleInPlaceObject, (void**)&inplace);
|
||||||
ok(hres == S_OK, "QueryInterface(IID_OleInPlaceObject) failed: %08x\n", hres);
|
ok(hres == S_OK, "QueryInterface(IID_OleInPlaceObject) failed: %08x\n", hres);
|
||||||
|
@ -1071,6 +1082,8 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
|
||||||
|
|
||||||
shell_embedding_hwnd = hwnd;
|
shell_embedding_hwnd = hwnd;
|
||||||
|
|
||||||
|
test_SetHostNames(oleobj);
|
||||||
|
|
||||||
IOleInPlaceObject_Release(inplace);
|
IOleInPlaceObject_Release(inplace);
|
||||||
IOleObject_Release(oleobj);
|
IOleObject_Release(oleobj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue