ole32: Only read known format ids when attempting to read summary information.
This commit is contained in:
parent
b4c3a04165
commit
c94b2687d2
|
@ -1314,6 +1314,13 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
|
|||
hr = PropertyStorage_ReadFmtIdOffsetFromStream(This->stm, &fmtOffset);
|
||||
if (FAILED(hr))
|
||||
goto end;
|
||||
if (!IsEqualGUID(&fmtOffset.fmtid, &FMTID_DocSummaryInformation) &&
|
||||
!IsEqualGUID(&fmtOffset.fmtid, &FMTID_SummaryInformation))
|
||||
{
|
||||
WARN("not reading unknown fmtid %s\n", debugstr_guid(&fmtOffset.fmtid));
|
||||
hr = S_FALSE;
|
||||
goto end;
|
||||
}
|
||||
if (fmtOffset.dwOffset > stat.cbSize.u.LowPart)
|
||||
{
|
||||
WARN("invalid offset %d (stream length is %d)\n", fmtOffset.dwOffset,
|
||||
|
|
|
@ -333,7 +333,6 @@ static void testProps(void)
|
|||
|
||||
hr = IPropertySetStorage_Open(propSetStorage, &anyOldGuid,
|
||||
STGM_READWRITE | STGM_SHARE_EXCLUSIVE, &propertyStorage);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "IPropertySetStorage_Open failed: 0x%08x\n", hr);
|
||||
|
||||
spec.ulKind = PRSPEC_PROPID;
|
||||
|
|
Loading…
Reference in New Issue