winefile patch 1
Martin Fuchs
martin-fuchs at gmx.net
Wed May 11 09:55:57 CDT 2005
Changelog:
improved version of Piotr Caban's bugfix patch "Fixed display bug"
Index: winefile.c
===================================================================
RCS file: /home/wine/wine/programs/winefile/winefile.c,v
retrieving revision 1.33
diff -u -p -d -r1.33 winefile.c
--- winefile.c 4 May 2005 09:47:07 -0000 1.33
+++ winefile.c 11 May 2005 14:48:40 -0000
@@ -1,7 +1,7 @@
/*
* Winefile
*
- * Copyright 2000, 2003, 2004 Martin Fuchs
+ * Copyright 2000, 2003, 2004, 2005 Martin Fuchs
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -2307,12 +2307,12 @@ static void calc_single_width(Pane* pane
/* 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);
@@ -2337,13 +2337,13 @@ static void insert_entries(Pane* pane, E
ListBox_InsertItemData(pane->hwnd, idx, entry);
- if (pane->treePane && entry->expanded) {
- insert_entries(pane, entry->down, idx);
- idx = ListBox_GetCount(pane->hwnd)-1;
- }
+ if (pane->treePane && entry->expanded)
+ idx = insert_entries(pane, entry->down, idx);
}
ShowWindow(pane->hwnd, SW_SHOW);
+
+ return idx;
}
More information about the wine-patches
mailing list