From 0ba24895f667db5b0cf397151f04518c50697007 Mon Sep 17 00:00:00 2001 From: Daniel Jelinski Date: Sun, 11 Aug 2013 22:25:54 +0200 Subject: [PATCH] comctl32: Do not rearrange treeview when collapsing already collapsed item. --- dlls/comctl32/treeview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index c3ce4062d97..c73fb54ab8d 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -3296,6 +3296,8 @@ TREEVIEW_Collapse(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item, TREEVIEW_RemoveAllChildren(infoPtr, item); item->cChildren = old_cChildren; } + if (!wasExpanded) + return FALSE; if (item->firstChild) {