From 4be9f0a79bf3059890f39dd8b0938c204d2f4a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=B6berle?= Date: Sat, 17 Jul 2010 10:02:11 +0200 Subject: [PATCH] comctl32: Simplify the code. --- dlls/comctl32/treeview.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 2c3706e2b12..860731efb09 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");