http://bugs.winehq.org/show_bug.cgi?id=5311
------- Additional Comments From xerox_xerox2000@yahoo.co.uk 2006-30-05 15:54 ------- I don;t know anything about this code, but following oneliner makes the application start fine. Is that line newItem->iSelectedImage = -1; really needed?
--- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -1011,8 +1011,7 @@ TREEVIEW_AllocateItem(TREEVIEW_INFO *inf return NULL;
newItem->iImage = -1; - newItem->iSelectedImage = -1; - + if (DPA_InsertPtr(infoPtr->items, INT_MAX, newItem) == -1) { Free(newItem);