ole32: Fix an off-by-one error that broke reading of many properties.
This commit is contained in:
parent
df219f8758
commit
c75a4fd50a
|
@ -1356,7 +1356,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
|
|||
i * sizeof(PROPERTYIDOFFSET));
|
||||
|
||||
if (idOffset->dwOffset < sizeof(PROPERTYSECTIONHEADER) ||
|
||||
idOffset->dwOffset >= sectionHdr.cbSection - sizeof(DWORD))
|
||||
idOffset->dwOffset > sectionHdr.cbSection - sizeof(DWORD))
|
||||
hr = STG_E_INVALIDPOINTER;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue