comctl32: Simplify the code.

This commit is contained in:
Florian Köberle 2010-07-17 10:02:11 +02:00 committed by Alexandre Julliard
parent 42c5ff799a
commit 4be9f0a79b

View File

@ -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");