From c75a4fd50a03495d661fdb6751b52d1828a7aabc Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Sat, 20 Nov 2010 13:43:01 -0600 Subject: [PATCH] ole32: Fix an off-by-one error that broke reading of many properties. --- dlls/ole32/stg_prop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index b3362bc21de..65b4b2ec79c 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -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 {