comctl32: Simplify the code.
This commit is contained in:
parent
42c5ff799a
commit
4be9f0a79b
|
@ -3311,20 +3311,11 @@ TREEVIEW_Expand(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
|
||||||
TRACE(" TVN_ITEMEXPANDING returned TRUE, exiting...\n");
|
TRACE(" TVN_ITEMEXPANDING returned TRUE, exiting...\n");
|
||||||
return FALSE;
|
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)
|
if (bExpandPartial)
|
||||||
FIXME("TVE_EXPANDPARTIAL not implemented\n");
|
FIXME("TVE_EXPANDPARTIAL not implemented\n");
|
||||||
|
|
Loading…
Reference in New Issue