Module: wine Branch: master Commit: b9d8c2b1eacbfd88fd167a6a10bfb02f3885ec10 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9d8c2b1eacbfd88fd167a6a10... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Wed Oct 21 10:51:52 2015 +0800 ole32: Initialize number of bytes read before the comparison. Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ole32/datacache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 2e2478a..8bb4ed8 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -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;