ole32: Ignore high part of size in storage version 3 files.

This commit is contained in:
Vincent Povirk 2015-08-05 16:33:07 -05:00 committed by Alexandre Julliard
parent 7ec5f555b0
commit 9d517a1727
1 changed files with 12 additions and 4 deletions

View File

@ -3446,10 +3446,18 @@ static HRESULT StorageImpl_ReadDirEntry(
OFFSET_PS_SIZE, OFFSET_PS_SIZE,
&buffer->size.u.LowPart); &buffer->size.u.LowPart);
StorageUtl_ReadDWord( if (This->bigBlockSize < 4096)
currentEntry, {
OFFSET_PS_SIZE_HIGH, /* Version 3 files may have junk in the high part of size. */
&buffer->size.u.HighPart); buffer->size.u.HighPart = 0;
}
else
{
StorageUtl_ReadDWord(
currentEntry,
OFFSET_PS_SIZE_HIGH,
&buffer->size.u.HighPart);
}
} }
return readRes; return readRes;