Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
static void
TREEVIEW_UnlinkItem(const TREEVIEW_ITEM *item)
{
- TREEVIEW_ITEM *parentItem = item->parent;
+ TREEVIEW_ITEM *parentItem;
assert(item != NULL);
assert(item->parent != NULL); /* i.e. it must not be the root */
+ parentItem = item->parent;
+
if (parentItem->firstChild == item)
parentItem->firstChild = item->nextSibling;