31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-dlls_comctl32_treeview_c,v 1.2 2007/10/26 21:04:25 ajacoutot Exp $
|
|
--- dlls/comctl32/treeview.c.orig Wed Feb 17 14:51:07 1999
|
|
+++ dlls/comctl32/treeview.c Fri Oct 26 22:55:05 2007
|
|
@@ -1127,7 +1127,7 @@ TREEVIEW_InsertItem32A (WND *wndPtr, WPARAM32 wParam,
|
|
if (listItems>1) {
|
|
prevsib=NULL;
|
|
switch ((INT32)ptdi->hInsertAfter) {
|
|
- case TVI_FIRST:
|
|
+ case (INT32)TVI_FIRST:
|
|
if (wineItem->parent) {
|
|
wineItem->sibling=parentItem->firstChild;
|
|
parentItem->firstChild=(HTREEITEM)iItem;
|
|
@@ -1137,7 +1137,7 @@ TREEVIEW_InsertItem32A (WND *wndPtr, WPARAM32 wParam,
|
|
}
|
|
sibItem->upsibling=(HTREEITEM)iItem;
|
|
break;
|
|
- case TVI_LAST:
|
|
+ case (INT32)TVI_LAST:
|
|
if (sibItem==wineItem) break;
|
|
while (sibItem->sibling) {
|
|
prevsib=sibItem;
|
|
@@ -1146,7 +1146,7 @@ TREEVIEW_InsertItem32A (WND *wndPtr, WPARAM32 wParam,
|
|
sibItem->sibling=(HTREEITEM)iItem;
|
|
wineItem->upsibling=sibItem->hItem;
|
|
break;
|
|
- case TVI_SORT:
|
|
+ case (INT32)TVI_SORT:
|
|
FIXME (treeview, "Sorted insert not implemented yet\n");
|
|
break;
|
|
default:
|