Sync to Wine: (rewritten bug fix)
date: 2004/12/14 11:43:30
Piotr Caban <pio13(a)poczta.onet.pl>
Fixed display bug.
Modified: trunk/reactos/subsys/system/winefile/winefile.c
_____
Modified: trunk/reactos/subsys/system/winefile/winefile.c
--- trunk/reactos/subsys/system/winefile/winefile.c 2005-05-11
14:36:40 UTC (rev 15212)
+++ trunk/reactos/subsys/system/winefile/winefile.c 2005-05-11
14:46:42 UTC (rev 15213)
@@ -2354,12 +2354,12 @@
/* insert listbox entries after index idx */
-static void insert_entries(Pane* pane, Entry* dir, int idx)
+static int insert_entries(Pane* pane, Entry* dir, int idx)
{
Entry* entry = dir;
if (!entry)
- return;
+ return idx;
ShowWindow(pane->hwnd, SW_HIDE);
@@ -2385,10 +2385,12 @@
ListBox_InsertItemData(pane->hwnd, idx, entry);
if (pane->treePane && entry->expanded)
- insert_entries(pane, entry->down, idx);
+ idx = insert_entries(pane, entry->down, idx);
}
ShowWindow(pane->hwnd, SW_SHOW);
+
+ return idx;
}
Show replies by date