ole32: Query the object's dirty state if it's running.

This commit is contained in:
Huw Davies 2008-10-20 16:32:56 +01:00 committed by Alexandre Julliard
parent 3a0ed83fb0
commit 94d753c63d
1 changed files with 11 additions and 2 deletions

View File

@ -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;
return IPersistStorage_IsDirty(This->dataCache_PersistStg);
TRACE("(%p)\n", iface);
hr = IPersistStorage_IsDirty(This->dataCache_PersistStg);
if(hr != S_FALSE) return hr;
if(object_is_running(This))
hr = IPersistStorage_IsDirty(This->pPSDelegate);
return hr;
}
/************************************************************************