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:
parent
5881d91cfc
commit
3721bf60bb
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue