shdocvw: Return S_OK in IOleObject::SetHostNames.

This commit is contained in:
Jacek Caban 2007-12-12 02:01:11 +01:00 committed by Alexandre Julliard
parent ae7b2c914b
commit be11c75729
2 changed files with 18 additions and 2 deletions

View File

@ -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)

View File

@ -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);
} }