Commit a2d59ef5 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Implement DataCache_GetClassID.

parent f8b54686
...@@ -953,8 +953,22 @@ static HRESULT WINAPI DataCache_GetClassID( ...@@ -953,8 +953,22 @@ static HRESULT WINAPI DataCache_GetClassID(
IPersistStorage* iface, IPersistStorage* iface,
CLSID* pClassID) CLSID* pClassID)
{ {
DataCache *This = impl_from_IPersistStorage(iface);
HRESULT hr = S_OK;
TRACE("(%p, %p)\n", iface, pClassID); 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;
} }
/************************************************************************ /************************************************************************
......
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