Piotr Caban : mshtml: Added OleObject_Unadvise implementation.

Alexandre Julliard julliard at winehq.org
Mon Dec 7 10:26:20 CST 2009


Module: wine
Branch: master
Commit: 0aca61c5c36b510f06ad0bbdf17b1743584860ce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0aca61c5c36b510f06ad0bbdf17b1743584860ce

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Dec  7 14:52:54 2009 +0100

mshtml: Added OleObject_Unadvise implementation.

---

 dlls/mshtml/oleobj.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/oleobj.c b/dlls/mshtml/oleobj.c
index 7ae03a4..fd396b1 100644
--- a/dlls/mshtml/oleobj.c
+++ b/dlls/mshtml/oleobj.c
@@ -402,8 +402,12 @@ static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink,
 static HRESULT WINAPI OleObject_Unadvise(IOleObject *iface, DWORD dwConnection)
 {
     HTMLDocument *This = OLEOBJ_THIS(iface);
-    FIXME("(%p)->(%d)\n", This, dwConnection);
-    return E_NOTIMPL;
+    TRACE("(%p)->(%d)\n", This, dwConnection);
+
+    if(!This->advise_holder)
+        return OLE_E_NOCONNECTION;
+
+    return IOleAdviseHolder_Unadvise(This->advise_holder, dwConnection);
 }
 
 static HRESULT WINAPI OleObject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **ppenumAdvise)




More information about the wine-cvs mailing list