Commit 3721bf60 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ole32: Check the return value of IStream_SetSize so as to not blindly continue…

ole32: Check the return value of IStream_SetSize so as to not blindly continue on and possibly corrupt the structured storage file.
parent 5881d91c
...@@ -415,7 +415,9 @@ static HRESULT WINAPI StgStreamImpl_Write( ...@@ -415,7 +415,9 @@ static HRESULT WINAPI StgStreamImpl_Write(
if (newSize.u.LowPart > This->streamSize.u.LowPart) if (newSize.u.LowPart > This->streamSize.u.LowPart)
{ {
/* grow stream */ /* grow stream */
IStream_SetSize(iface, newSize); res = IStream_SetSize(iface, newSize);
if (FAILED(res))
return res;
} }
/* /*
......
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