Commit efa2b0c1 authored by Tim Segall's avatar Tim Segall Committed by Alexandre Julliard

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

tree.
parent 841d9828
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment