Nikolay Sivov : gdi32: Initialize 'param' field (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Dec 22 14:06:50 CST 2015
Module: wine
Branch: master
Commit: 1aa53bc470e81ca70b33c6d2c07744febff6d74b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1aa53bc470e81ca70b33c6d2c07744febff6d74b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Dec 22 01:14:25 2015 +0300
gdi32: Initialize 'param' field (Coverity).
For consistency with the rest of the code, initialize both
'free' and 'param' fields.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/dibdrv/bitblt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/gdi32/dibdrv/bitblt.c b/dlls/gdi32/dibdrv/bitblt.c
index a944e71..6b8a8b5 100644
--- a/dlls/gdi32/dibdrv/bitblt.c
+++ b/dlls/gdi32/dibdrv/bitblt.c
@@ -828,6 +828,7 @@ static DWORD get_image_dib_info( dib_info *dib, BITMAPINFO *info,
bits->ptr = dib->bits.ptr;
bits->is_copy = FALSE;
bits->free = NULL;
+ bits->param = NULL;
if (dib->stride < 0) bits->ptr = (char *)bits->ptr + (dib->height - 1) * dib->stride;
src->x += dib->rect.left;
src->y += dib->rect.top;
More information about the wine-cvs
mailing list