Module: wine Branch: master Commit: 89edf3a52f628c8e03a474f575df5f398c69aa2a URL: http://source.winehq.org/git/wine.git/?a=commit;h=89edf3a52f628c8e03a474f575...
Author: Huw Davies huw@codeweavers.com Date: Mon Oct 20 15:43:39 2008 +0100
ole32: Call the object's IPersistStorage_SaveCompleted() if the object is running.
---
dlls/ole32/defaulthandler.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index 7a851ca..41a5e92 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -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; + + TRACE("(%p)->(%p)\n", iface, pStgNew);
- return IPersistStorage_SaveCompleted(This->dataCache_PersistStg, pStgNew); + hr = IPersistStorage_SaveCompleted(This->dataCache_PersistStg, pStgNew); + + if(SUCCEEDED(hr) && object_is_running(This)) + hr = IPersistStorage_SaveCompleted(This->pPSDelegate, pStgNew); + + return hr; }