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

This commit is contained in:
Huw Davies 2008-10-20 15:43:39 +01:00 committed by Alexandre Julliard
parent 72f82c04ec
commit 89edf3a52f
1 changed files with 10 additions and 2 deletions

View File

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