atl: Send OLE_CLOSE command to control on detach.

This commit is contained in:
Alessandro Pignotti 2012-02-13 12:12:17 +01:00 committed by Alexandre Julliard
parent 04305e7f38
commit aaf99d8ef0
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
}