summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup_native/source/win32/customactions/sellang/sorttree.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/setup_native/source/win32/customactions/sellang/sorttree.cxx b/setup_native/source/win32/customactions/sellang/sorttree.cxx
index 9472a49bd82d..678103689f30 100644
--- a/setup_native/source/win32/customactions/sellang/sorttree.cxx
+++ b/setup_native/source/win32/customactions/sellang/sorttree.cxx
@@ -34,13 +34,7 @@ extern "C" UINT __stdcall SortTree(MSIHANDLE)
OutputDebugString("SortTree: SysTreeView32 not found\n");
return ERROR_SUCCESS;
}
- HTREEITEM treeRoot = TreeView_GetRoot(hwndTV);
- if (treeRoot == NULL)
- {
- OutputDebugString("SortTree: TreeView_GetRoot failed\n");
- return ERROR_SUCCESS;
- }
- HTREEITEM optional = TreeView_GetNextSibling(hwndTV, treeRoot);
+ HTREEITEM optional = TreeView_GetRoot(hwndTV);
if (optional == NULL)
{
OutputDebugString("SortTree: Optional Components branch not found\n");