Listview Z10

Dimitrie O. Paun dpaun at rogers.com
Mon Oct 28 08:24:02 CST 2002


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.




More information about the wine-patches mailing list