Dmitry Timoshkov : ole32: Initialize number of bytes read before the comparison.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 21 10:39:58 CDT 2015
Module: wine
Branch: master
Commit: b9d8c2b1eacbfd88fd167a6a10bfb02f3885ec10
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9d8c2b1eacbfd88fd167a6a10bfb02f3885ec10
Author: Dmitry Timoshkov <dmitry at 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 at baikal.ru>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list