comctl32/listview: Don't use uninitialized value.

This commit is contained in:
Nikolay Sivov 2009-05-20 22:13:19 +04:00 committed by Alexandre Julliard
parent 9eaf6a29fe
commit c198338263
1 changed files with 1 additions and 1 deletions

View File

@ -6565,7 +6565,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
lvItem.stateMask = LVIS_STATEIMAGEMASK;
if (uView == LVS_ICON) lvItem.stateMask |= LVIS_FOCUSED;
lvItem.iItem = iItem;
lvItem.iSubItem = lpht->iSubItem;
lvItem.iSubItem = subitem ? lpht->iSubItem : 0;
lvItem.pszText = szDispText;
lvItem.cchTextMax = DISP_TEXT_SIZE;
if (!LISTVIEW_GetItemW(infoPtr, &lvItem)) return -1;