Module: wine Branch: master Commit: 94d753c63dfad437fc37660d89a371d28504cb73 URL: http://source.winehq.org/git/wine.git/?a=commit;h=94d753c63dfad437fc37660d89...
Author: Huw Davies huw@codeweavers.com Date: Mon Oct 20 16:32:56 2008 +0100
ole32: Query the object's dirty state if it's running.
---
dlls/ole32/defaulthandler.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index 1af0797..ce44aec 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -1516,9 +1516,18 @@ static HRESULT WINAPI DefaultHandler_IPersistStorage_GetClassID( static HRESULT WINAPI DefaultHandler_IPersistStorage_IsDirty( IPersistStorage* iface) { - DefaultHandler *This = impl_from_IPersistStorage(iface); + DefaultHandler *This = impl_from_IPersistStorage(iface); + HRESULT hr; + + TRACE("(%p)\n", iface); + + hr = IPersistStorage_IsDirty(This->dataCache_PersistStg); + if(hr != S_FALSE) return hr;
- return IPersistStorage_IsDirty(This->dataCache_PersistStg); + if(object_is_running(This)) + hr = IPersistStorage_IsDirty(This->pPSDelegate); + + return hr; }
/************************************************************************