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

shdocvw: Call GetContainer in SetClientSite.

parent ccee0297
......@@ -26,6 +26,7 @@
#include <string.h>
#include "wine/debug.h"
#include "shdocvw.h"
#include "htiframe.h"
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
......@@ -206,6 +207,7 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE pClientSite)
{
WebBrowser *This = OLEOBJ_THIS(iface);
IOleContainer *container;
HRESULT hres;
TRACE("(%p)->(%p)\n", This, pClientSite);
......@@ -247,6 +249,20 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
if(FAILED(hres))
This->doc_host.hostui = NULL;
hres = IOleClientSite_GetContainer(This->client, &container);
if(SUCCEEDED(hres)) {
ITargetContainer *target_container;
hres = IOleContainer_QueryInterface(container, &IID_ITargetContainer,
(void**)&target_container);
if(SUCCEEDED(hres)) {
FIXME("Unsupported ITargetContainer\n");
ITargetContainer_Release(target_container);
}
IOleContainer_Release(container);
}
create_shell_embedding_hwnd(This);
return S_OK;
......
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