mshtml: Added Unadvise implementation.
This commit is contained in:
parent
7f617230a5
commit
7dcfbdecd6
|
@ -158,8 +158,15 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown *
|
||||||
static HRESULT WINAPI ConnectionPoint_Unadvise(IConnectionPoint *iface, DWORD dwCookie)
|
static HRESULT WINAPI ConnectionPoint_Unadvise(IConnectionPoint *iface, DWORD dwCookie)
|
||||||
{
|
{
|
||||||
ConnectionPoint *This = CONPOINT_THIS(iface);
|
ConnectionPoint *This = CONPOINT_THIS(iface);
|
||||||
FIXME("(%p)->(%ld)\n", This, dwCookie);
|
TRACE("(%p)->(%ld)\n", This, dwCookie);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
if(!dwCookie || dwCookie > This->sinks_size || !This->sinks[dwCookie-1].unk)
|
||||||
|
return CONNECT_E_NOCONNECTION;
|
||||||
|
|
||||||
|
IUnknown_Release(This->sinks[dwCookie-1].unk);
|
||||||
|
This->sinks[dwCookie-1].unk = NULL;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ConnectionPoint_EnumConnections(IConnectionPoint *iface,
|
static HRESULT WINAPI ConnectionPoint_EnumConnections(IConnectionPoint *iface,
|
||||||
|
|
Loading…
Reference in New Issue