Accept either TVI_ROOT or NULL for the parent to imply sort the entire
tree.
This commit is contained in:
parent
841d9828e9
commit
efa2b0c159
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue