Alexander Scott-Johns : comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind).
Module: wine Branch: master Commit: 60b5d91abb613a38af6abc0fa38dd21ab0912446 URL: http://source.winehq.org/git/wine.git/?a=commit;h=60b5d91abb613a38af6abc0fa3... Author: Alexander Scott-Johns <alexander.scott.johns(a)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;
participants (1)
-
Alexandre Julliard