http://bugs.winehq.com/show_bug.cgi?id=1232
------- Additional Comments From z_god@wanadoo.nl 2003-20-06 06:48 ------- Bug comments restored from Gmane.org:
using Kazaalite with builtin comctl32, if i try to sort a treeview by clicking on a column title, wine wont sort it and prints this message
err:treeview:TREEVIEW_Sort invalid item hParent=0
as a temporary workaround, i changed the following in TREEVIEW_Sort() from treeview.c
/* Check for a valid handle to the parent item */ if (!TREEVIEW_ValidItem(infoPtr, parent)) { ERR("invalid item hParent=%x\n", (INT)parent); return FALSE; }
to /* Check for a valid handle to the parent item */ if (!TREEVIEW_ValidItem(infoPtr, parent)) { ERR("invalid item hParent=%x\n", (INT)parent); /* return FALSE; */ /* i still requested a sort.... */ parent=infoPtr->root; }
which does the trick for now, and all columns sort as you would expect.