From efa2b0c159fa83faef63bd07d8f4ca769568c05f Mon Sep 17 00:00:00 2001 From: Tim Segall Date: Tue, 25 Feb 2003 03:59:12 +0000 Subject: [PATCH] Accept either TVI_ROOT or NULL for the parent to imply sort the entire tree. --- dlls/comctl32/treeview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 8b164bed0ff..3bf77aaf96c 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2933,8 +2933,8 @@ TREEVIEW_Sort(TREEVIEW_INFO *infoPtr, BOOL fRecurse, HTREEITEM parent, PFNDPACOMPARE pfnCompare; LPARAM lpCompare; - /* undocumented feature: TVI_ROOT means `sort the whole tree' */ - if (parent == TVI_ROOT) + /* undocumented feature: TVI_ROOT or NULL means `sort the whole tree' */ + if (parent == TVI_ROOT || parent == NULL) parent = infoPtr->root; /* Check for a valid handle to the parent item */