Accept either TVI_ROOT or NULL for the parent to imply sort the entire

tree.
oldstable
Tim Segall 2003-02-25 03:59:12 +00:00 committed by Alexandre Julliard
parent 841d9828e9
commit efa2b0c159
1 changed files with 2 additions and 2 deletions

View File

@ -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 */