[PATCH 2/2] comctl32: Simplify the code.
Florian Köberle
florian at fkoeberle.de
Sat Jul 17 03:02:11 CDT 2010
---
dlls/comctl32/treeview.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 2c3706e..860731e 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -3311,20 +3311,11 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
TRACE(" TVN_ITEMEXPANDING returned TRUE, exiting...\n");
return FALSE;
}
-
- if (!wineItem->firstChild)
- return FALSE;
-
- wineItem->state |= TVIS_EXPANDED;
}
- else
- {
- if (!wineItem->firstChild)
- return FALSE;
+ if (!wineItem->firstChild)
+ return FALSE;
- /* this item has already been expanded */
- wineItem->state |= TVIS_EXPANDED;
- }
+ wineItem->state |= TVIS_EXPANDED;
if (bExpandPartial)
FIXME("TVE_EXPANDPARTIAL not implemented\n");
--
1.7.0.4
More information about the wine-patches
mailing list