ChangeLog Append columns with large column indecies. Index: dlls/comctl32/listview.c =================================================================== RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v retrieving revision 1.325 diff -u -r1.325 listview.c --- dlls/comctl32/listview.c 28 Oct 2002 21:21:42 -0000 1.325 +++ dlls/comctl32/listview.c 30 Oct 2002 19:19:35 -0000 @@ -6044,7 +6044,8 @@ TRACE("(nColumn=%d, lpColumn=%s, isW=%d)\n", nColumn, debuglvcolumn_t(lpColumn, isW), isW); - if (!lpColumn || nColumn < 0 || nColumn > infoPtr->hdpaColumns->nItemCount) return -1; + if (!lpColumn || nColumn < 0) return -1; + nColumn = min(nColumn, infoPtr->hdpaColumns->nItemCount); ZeroMemory(&hdi, sizeof(HDITEMW)); column_fill_hditem(infoPtr, &hdi, nColumn, lpColumn, isW); -- Dimi.