Commit 9d517a17 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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

parent 7ec5f555
...@@ -3446,10 +3446,18 @@ static HRESULT StorageImpl_ReadDirEntry( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment