ole32: Initialize number of bytes read before the comparison.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
646888ec79
commit
b9d8c2b1ea
|
@ -408,7 +408,7 @@ static HRESULT read_clipformat(IStream *stream, CLIPFORMAT *clipformat)
|
|||
if (length == -1)
|
||||
{
|
||||
DWORD cf;
|
||||
hr = IStream_Read(stream, &cf, sizeof(cf), 0);
|
||||
hr = IStream_Read(stream, &cf, sizeof(cf), &read);
|
||||
if (hr != S_OK || read != sizeof(cf))
|
||||
return DV_E_CLIPFORMAT;
|
||||
*clipformat = cf;
|
||||
|
|
Loading…
Reference in New Issue