mshtml: Added Unadvise implementation.

This commit is contained in:
Jacek Caban 2006-06-25 15:50:18 +02:00 committed by Alexandre Julliard
parent 7f617230a5
commit 7dcfbdecd6
1 changed files with 9 additions and 2 deletions

View File

@ -158,8 +158,15 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown *
static HRESULT WINAPI ConnectionPoint_Unadvise(IConnectionPoint *iface, DWORD dwCookie)
{
ConnectionPoint *This = CONPOINT_THIS(iface);
FIXME("(%p)->(%ld)\n", This, dwCookie);
return E_NOTIMPL;
TRACE("(%p)->(%ld)\n", This, dwCookie);
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,