Commit c148c041 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

shell32: Added partial implementation of SHPropStgReadMultiple.

parent bfaae9bf
...@@ -715,8 +715,35 @@ HRESULT WINAPI SHPropStgCreate(IPropertySetStorage *psstg, REFFMTID fmtid, ...@@ -715,8 +715,35 @@ HRESULT WINAPI SHPropStgCreate(IPropertySetStorage *psstg, REFFMTID fmtid,
HRESULT WINAPI SHPropStgReadMultiple(IPropertyStorage *pps, UINT uCodePage, HRESULT WINAPI SHPropStgReadMultiple(IPropertyStorage *pps, UINT uCodePage,
ULONG cpspec, const PROPSPEC *rgpspec, PROPVARIANT *rgvar) ULONG cpspec, const PROPSPEC *rgpspec, PROPVARIANT *rgvar)
{ {
FIXME("stub\n"); STATPROPSETSTG stat;
return E_NOTIMPL; HRESULT hres;
FIXME("%p %u %u %p %p\n", pps, uCodePage, cpspec, rgpspec, rgvar);
memset(rgvar, 0, cpspec*sizeof(PROPVARIANT));
hres = IPropertyStorage_ReadMultiple(pps, cpspec, rgpspec, rgvar);
if(FAILED(hres))
return hres;
if(!uCodePage) {
PROPSPEC prop;
PROPVARIANT ret;
prop.ulKind = PRSPEC_PROPID;
prop.u.propid = PID_CODEPAGE;
hres = IPropertyStorage_ReadMultiple(pps, 1, &prop, &ret);
if(FAILED(hres) || ret.vt!=VT_I2)
return S_OK;
uCodePage = ret.u.iVal;
}
hres = IPropertyStorage_Stat(pps, &stat);
if(FAILED(hres))
return S_OK;
/* TODO: do something with codepage and stat */
return S_OK;
} }
/************************************************************************* /*************************************************************************
......
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