Alessandro Pignotti : atl: Send OLE_CLOSE command to control on detach.

Alexandre Julliard julliard at winehq.org
Mon Mar 26 12:29:29 CDT 2012


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

Author: Alessandro Pignotti <a.pignotti at sssup.it>
Date:   Mon Feb 13 12:12:17 2012 +0100

atl: Send OLE_CLOSE command to control on detach.

---

 dlls/atl/atl_ax.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index c1b74f7..3b0abea5 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -800,6 +800,7 @@ static HRESULT IOCS_Detach( IOCS *This ) /* remove subclassing */
         IOleObject *control = This->control;
 
         This->control = NULL;
+        IOleObject_Close( control, OLECLOSE_NOSAVE );
         IOleObject_SetClientSite( control, NULL );
         IOleObject_Release( control );
     }




More information about the wine-cvs mailing list