Alexander Scott-Johns : comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Feb 21 10:56:57 CST 2011


Module: wine
Branch: master
Commit: 60b5d91abb613a38af6abc0fa38dd21ab0912446
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=60b5d91abb613a38af6abc0fa38dd21ab0912446

Author: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date:   Fri Feb 18 23:21:34 2011 +0000

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 4dad175..01c5864 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;




More information about the wine-cvs mailing list