From: Piotr Caban piotr@codeweavers.com
--- dlls/ole32/stg_prop.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c index 70d7635cc72..7f1b71eb647 100644 --- a/dlls/ole32/stg_prop.c +++ b/dlls/ole32/stg_prop.c @@ -2476,10 +2476,14 @@ static HRESULT PropertyStorage_WriteToStream(PropertyStorage_impl *This) PROPERTYSECTIONHEADER sectionHdr; HRESULT hr; ULONG count; + ULARGE_INTEGER size; LARGE_INTEGER seek; DWORD numProps, prop, sectionOffset, dwTemp; PROPVARIANT var;
+ size.QuadPart = 0; + IStream_SetSize(This->stm, size); + PropertyStorage_WriteHeadersToStream(This);
/* Count properties. Always at least one property, the code page */