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

This commit is contained in:
Alexander Scott-Johns 2011-02-18 23:21:34 +00:00 committed by Alexandre Julliard
parent f2df2f38e6
commit 60b5d91abb

View 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;