mirror of
https://github.com/reactos/wine.git
synced 2025-01-26 05:54:34 +00:00
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…
x
Reference in New Issue
Block a user