Jacek Caban : mshtml: Added Unadvise implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 26 07:13:14 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 7dcfbdecd65c5474f59c11f9f6943fa92fdb5b18
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7dcfbdecd65c5474f59c11f9f6943fa92fdb5b18
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Jun 25 15:50:18 2006 +0200
mshtml: Added Unadvise implementation.
---
dlls/mshtml/conpoint.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/conpoint.c b/dlls/mshtml/conpoint.c
index 860a9a5..35b73a8 100644
--- a/dlls/mshtml/conpoint.c
+++ b/dlls/mshtml/conpoint.c
@@ -158,8 +158,15 @@ static HRESULT WINAPI ConnectionPoint_Ad
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,
More information about the wine-cvs
mailing list