ole32: Implement DataCache_GetClassID.

This commit is contained in:
Rob Shearman 2006-12-01 15:01:27 +00:00 committed by Alexandre Julliard
parent f8b54686fd
commit a2d59ef534
1 changed files with 15 additions and 1 deletions

View File

@ -953,8 +953,22 @@ static HRESULT WINAPI DataCache_GetClassID(
IPersistStorage* iface,
CLSID* pClassID)
{
DataCache *This = impl_from_IPersistStorage(iface);
HRESULT hr = S_OK;
TRACE("(%p, %p)\n", iface, pClassID);
return E_NOTIMPL;
if (This->presentationStorage != NULL)
{
STATSTG statstg;
hr = IStorage_Stat(This->presentationStorage, &statstg, STATFLAG_NONAME);
if (SUCCEEDED(hr))
memcpy(pClassID, &statstg.clsid, sizeof(*pClassID));
}
else
memcpy(pClassID, &CLSID_NULL, sizeof(*pClassID));
return hr;
}
/************************************************************************