ole32: Ignore high part of size in storage version 3 files.
This commit is contained in:
parent
7ec5f555b0
commit
9d517a1727
|
@ -3446,11 +3446,19 @@ static HRESULT StorageImpl_ReadDirEntry(
|
|||
OFFSET_PS_SIZE,
|
||||
&buffer->size.u.LowPart);
|
||||
|
||||
if (This->bigBlockSize < 4096)
|
||||
{
|
||||
/* Version 3 files may have junk in the high part of size. */
|
||||
buffer->size.u.HighPart = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
StorageUtl_ReadDWord(
|
||||
currentEntry,
|
||||
OFFSET_PS_SIZE_HIGH,
|
||||
&buffer->size.u.HighPart);
|
||||
}
|
||||
}
|
||||
|
||||
return readRes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue