Commit aaf99d8e authored by Alessandro Pignotti's avatar Alessandro Pignotti Committed by Alexandre Julliard

atl: Send OLE_CLOSE command to control on detach.

parent 04305e7f
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment