Dmitry Timoshkov : ieframe: IOleObject::Close() should notify OnClose() advise sink.

Alexandre Julliard julliard at winehq.org
Wed Jul 29 15:47:00 CDT 2020


Module: wine
Branch: master
Commit: d4ba3d866db53aede9cc14b3f3e09045fce2e164
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d4ba3d866db53aede9cc14b3f3e09045fce2e164

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jul 29 16:57:25 2020 +0800

ieframe: IOleObject::Close() should notify OnClose() advise sink.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ieframe/oleobject.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ieframe/oleobject.c b/dlls/ieframe/oleobject.c
index a3fa645334..031994caa5 100644
--- a/dlls/ieframe/oleobject.c
+++ b/dlls/ieframe/oleobject.c
@@ -610,6 +610,10 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
         IOleClientSite_AddRef(This->client);
     hres = IOleObject_SetClientSite(iface, NULL);
     This->client_closed = client;
+
+    if(This->advise_holder)
+        IOleAdviseHolder_SendOnClose(This->advise_holder);
+
     return hres;
 }
 




More information about the wine-cvs mailing list