ole32: Call the object's GetClassID if it's running.

This commit is contained in:
Huw Davies 2008-10-31 12:29:10 +00:00 committed by Alexandre Julliard
parent 8d1d6a2822
commit 5937ddd403
1 changed files with 10 additions and 2 deletions

View File

@ -1520,9 +1520,17 @@ static HRESULT WINAPI DefaultHandler_IPersistStorage_GetClassID(
IPersistStorage* iface,
CLSID* clsid)
{
DefaultHandler *This = impl_from_IPersistStorage(iface);
DefaultHandler *This = impl_from_IPersistStorage(iface);
HRESULT hr;
return IPersistStorage_GetClassID(This->dataCache_PersistStg, clsid);
TRACE("(%p)->(%p)\n", iface, clsid);
if(object_is_running(This))
hr = IPersistStorage_GetClassID(This->pPSDelegate, clsid);
else
hr = IPersistStorage_GetClassID(This->dataCache_PersistStg, clsid);
return hr;
}
/************************************************************************