atl: Send OLE_CLOSE command to control on detach.
This commit is contained in:
parent
04305e7f38
commit
aaf99d8ef0
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue