Florian Köberle : comctl32: Simplify the code.
Alexandre Julliard
julliard at winehq.org
Mon Jul 19 11:05:35 CDT 2010
Module: wine
Branch: master
Commit: 4be9f0a79bf3059890f39dd8b0938c204d2f4a13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4be9f0a79bf3059890f39dd8b0938c204d2f4a13
Author: Florian Köberle <florian at fkoeberle.de>
Date: Sat Jul 17 10:02:11 2010 +0200
comctl32: Simplify the code.
---
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");
More information about the wine-cvs
mailing list