Listview V18 (take 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux