ole32: Call the object's IPersistStorage_HandsOffStorage() if the object is running.

oldstable
Huw Davies 2008-10-20 15:46:23 +01:00 committed by Alexandre Julliard
parent 89edf3a52f
commit 3a0ed83fb0
1 changed files with 10 additions and 2 deletions

View File

@ -1616,9 +1616,17 @@ static HRESULT WINAPI DefaultHandler_IPersistStorage_SaveCompleted(
static HRESULT WINAPI DefaultHandler_IPersistStorage_HandsOffStorage(
IPersistStorage* iface)
{
DefaultHandler *This = impl_from_IPersistStorage(iface);
DefaultHandler *This = impl_from_IPersistStorage(iface);
HRESULT hr;
return IPersistStorage_HandsOffStorage(This->dataCache_PersistStg);
TRACE("(%p)\n", iface);
hr = IPersistStorage_HandsOffStorage(This->dataCache_PersistStg);
if(SUCCEEDED(hr) && object_is_running(This))
hr = IPersistStorage_HandsOffStorage(This->pPSDelegate);
return hr;
}