Commit 5b152076 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 3019a8f1
......@@ -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;
TRACE("(%p)->(%p)\n", iface, pStg);
return IPersistStorage_InitNew(This->dataCache_PersistStg, pStg);
hr = IPersistStorage_InitNew(This->dataCache_PersistStg, pStg);
if(SUCCEEDED(hr) && object_is_running(This))
hr = IPersistStorage_InitNew(This->pPSDelegate, pStg);
return hr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment