comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind).
authorAlexander Scott-Johns <alexander.scott.johns@googlemail.com>
Fri, 18 Feb 2011 23:21:34 +0000 (23:21 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 21 Feb 2011 11:46:26 +0000 (12:46 +0100)
dlls/comctl32/listview.c

index 4dad175bf45d9d522aa1315289cdc2a2b51cdee3..01c58644b528dab99f6ea42acd1c85e12303479e 100644 (file)
@@ -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;