ole32: Initialize number of bytes read before the comparison.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Oct 20 21:51:52 CDT 2015
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
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;
--
2.6.2
More information about the wine-patches
mailing list