ole32: Check the return value of IStream_SetSize so as to not blindly continue on and possibly corrupt the structured storage file.

This commit is contained in:
Robert Shearman 2006-09-27 15:51:13 +01:00 committed by Alexandre Julliard
parent 5881d91cfc
commit 3721bf60bb
1 changed files with 3 additions and 1 deletions

View File

@ -415,7 +415,9 @@ static HRESULT WINAPI StgStreamImpl_Write(
if (newSize.u.LowPart > This->streamSize.u.LowPart)
{
/* grow stream */
IStream_SetSize(iface, newSize);
res = IStream_SetSize(iface, newSize);
if (FAILED(res))
return res;
}
/*