comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind).

Alexander Scott-Johns alexander.scott.johns at googlemail.com
Fri Feb 18 18:35:30 CST 2011


-------------- next part --------------
From 10ca6fcda7ab1db22152df8f5732b2dfb4b3c25c Mon Sep 17 00:00:00 2001
From: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date: Fri, 18 Feb 2011 23:21:34 +0000
Subject: comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind).

---
 dlls/comctl32/listview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 25c42c5..0e01669 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -865,6 +865,7 @@ static inline void notify_itemactivate(const LISTVIEW_INFO *infoPtr, const LVHIT
       item.mask = LVIF_PARAM|LVIF_STATE;
       item.iItem = htInfo->iItem;
       item.iSubItem = 0;
+      item.stateMask = (UINT)-1;
       if (LISTVIEW_GetItemT(infoPtr, &item, TRUE)) {
 	  nmia.lParam = item.lParam;
  	  nmia.uOldState = item.state;
-- 
1.7.0.4


More information about the wine-patches mailing list