Listview Z10

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

 



This one prevents some crashes, main item is special.
It also concludes the Z-series.
And so, my mini-vacation starts...
(Hey, I need closure to rest! :))


ChangeLog
  We should always have a main item in report mode.

--- dlls/comctl32/listview.c.Z9	2002-10-27 12:28:59.000000000 -0500
+++ dlls/comctl32/listview.c	2002-10-28 09:20:43.000000000 -0500
@@ -1219,6 +1219,9 @@
 
 static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(LISTVIEW_INFO *infoPtr, INT nSubItem)
 {
+    static COLUMN_INFO mainItem;
+
+    if (nSubItem == 0 && infoPtr->hdpaColumns->nItemCount == 0) return &mainItem;
     assert (nSubItem >= 0 && nSubItem < infoPtr->hdpaColumns->nItemCount);
     return (COLUMN_INFO *)DPA_GetPtr(infoPtr->hdpaColumns, nSubItem);
 }


-- 
Dimi.



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

  Powered by Linux