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

This commit is contained in:
Huw Davies 2008-10-20 15:28:03 +01:00 committed by Alexandre Julliard
parent 3019a8f195
commit 5b1520761d
1 changed files with 10 additions and 2 deletions

View File

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