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

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

View File

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