Listview V18 (take 2)

Dimitrie O. Paun dpaun at rogers.com
Mon Oct 21 13:40:13 CDT 2002


Sorry, ignore the previous one.

This should fix Rein's Newspro crash.

Alexandre, I think I'm done with the V-series... ;)

ChangeLog
  Do not send uninitialized lParams on notification msgs.
  (Found by Rein Klazes <rklazes at xs4all.nl>)

--- dlls/comctl32/listview.c.V17	Mon Oct 21 14:26:15 2002
+++ dlls/comctl32/listview.c	Mon Oct 21 14:37:55 2002
@@ -3338,12 +3338,13 @@
 
     /* get information needed for drawing the item */
     lvItem.mask = LVIF_TEXT | LVIF_IMAGE;
-    if (nSubItem == 0) lvItem.mask |= LVIF_STATE;
+    if (nSubItem == 0) lvItem.mask |= LVIF_STATE | LVIF_PARAM;
     if (uView == LVS_REPORT) lvItem.mask |= LVIF_INDENT;
     lvItem.stateMask = LVIS_SELECTED | LVIS_FOCUSED | LVIS_STATEIMAGEMASK;
     lvItem.iItem = nItem;
-    lvItem.state = 0;
     lvItem.iSubItem = nSubItem;
+    lvItem.state = 0;
+    lvItem.lParam = 0;
     lvItem.cchTextMax = DISP_TEXT_SIZE;
     lvItem.pszText = szDispText;
     if (!LISTVIEW_GetItemW(infoPtr, &lvItem)) return FALSE;





More information about the wine-patches mailing list