ole32: Fix an off-by-one error that broke reading of many properties.

This commit is contained in:
Andrew Bogott 2010-11-20 13:43:01 -06:00 committed by Alexandre Julliard
parent df219f8758
commit c75a4fd50a
1 changed files with 1 additions and 1 deletions

View File

@ -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
{