ieframe: Implement IOleObject::Advise().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7c2d5d40e5
commit
0b941ea871
|
@ -199,6 +199,8 @@ struct WebBrowser {
|
|||
DWORD sink_aspects;
|
||||
DWORD sink_flags;
|
||||
|
||||
IOleAdviseHolder *advise_holder;
|
||||
|
||||
/* window context */
|
||||
|
||||
HWND frame_hwnd;
|
||||
|
|
|
@ -760,11 +760,28 @@ static HRESULT WINAPI OleObject_GetExtent(IOleObject *iface, DWORD dwDrawAspect,
|
|||
}
|
||||
|
||||
static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink,
|
||||
DWORD* pdwConnection)
|
||||
DWORD *pdwConnection)
|
||||
{
|
||||
WebBrowser *This = impl_from_IOleObject(iface);
|
||||
FIXME("(%p)->(%p, %p)\n", This, pAdvSink, pdwConnection);
|
||||
return E_NOTIMPL;
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
TRACE("(%p)->(%p, %p)\n", This, pAdvSink, pdwConnection);
|
||||
|
||||
if(!pdwConnection)
|
||||
return E_INVALIDARG;
|
||||
|
||||
*pdwConnection = 0;
|
||||
|
||||
if(!pAdvSink)
|
||||
return E_INVALIDARG;
|
||||
|
||||
if(!This->advise_holder)
|
||||
hr = CreateOleAdviseHolder(&This->advise_holder);
|
||||
|
||||
if(hr == S_OK)
|
||||
hr = IOleAdviseHolder_Advise(This->advise_holder, pAdvSink, pdwConnection);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI OleObject_Unadvise(IOleObject *iface, DWORD dwConnection)
|
||||
|
|
|
@ -170,6 +170,9 @@ static ULONG WINAPI WebBrowser_Release(IUnknown *iface)
|
|||
if(This->sink)
|
||||
IAdviseSink_Release(This->sink);
|
||||
|
||||
if(This->advise_holder)
|
||||
IOleAdviseHolder_Release(This->advise_holder);
|
||||
|
||||
if(This->doc_host.document)
|
||||
IUnknown_Release(This->doc_host.document);
|
||||
|
||||
|
|
Loading…
Reference in New Issue