http://bugs.winehq.org/show_bug.cgi?id=5128
nospam@thenerdshow.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |
------- Additional Comments From nospam@thenerdshow.com 2006-24-04 02:42 ------- Oops. Not a duplicate of bug 5126. This assertion is in a different place.
The following patch fixes this bug but it does not fix bug 5126 so I am reopening this. Please check this patch over. I am unfamiliar with the codebase and as such may have hacked it a bit.
--- wine/dlls/comctl32/listview.c.orig 2006-04-23 22:33:38.000000000 -0800 +++ wine/dlls/comctl32/listview.c 2006-04-23 23:10:20.000000000 -0800 @@ -1350,6 +1350,7 @@ static COLUMN_INFO mainItem;
if (nSubItem == 0 && DPA_GetPtrCount(infoPtr->hdpaColumns) == 0) return &mainItem; + if (nSubItem < 0) nSubItem = -nSubItem; assert (nSubItem >= 0 && nSubItem < DPA_GetPtrCount(infoPtr->hdpaColumns)); return (COLUMN_INFO *)DPA_GetPtr(infoPtr->hdpaColumns, nSubItem); }