From aea29a34173d692e237b1c74de8d10c76b4dfd0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Oct 2016 17:45:38 +0300 Subject: OPTIONSDIALOGPAGE::hIcon - also unused --- plugins/UserInfoEx/src/classPsTreeItem.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp') diff --git a/plugins/UserInfoEx/src/classPsTreeItem.cpp b/plugins/UserInfoEx/src/classPsTreeItem.cpp index 99e3f70f29..b006a05789 100644 --- a/plugins/UserInfoEx/src/classPsTreeItem.cpp +++ b/plugins/UserInfoEx/src/classPsTreeItem.cpp @@ -332,7 +332,7 @@ int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOn // icon library exists? if (sid.defaultFile.w) - sid.iDefaultIndex = (INT_PTR)odp->hIcon; + sid.iDefaultIndex = odp->dwInitParam; // no valid icon library else { bNeedFree = true; @@ -342,10 +342,7 @@ int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOn } // default icon is delivered by the page to add else { - if (odp->hIcon) - sid.hDefaultIcon = odp->hIcon; - else - sid.hDefaultIcon = ImageList_GetIcon(hIml, 0, ILD_NORMAL), bNeedFree = true; + sid.hDefaultIcon = ImageList_GetIcon(hIml, 0, ILD_NORMAL), bNeedFree = true; sid.iDefaultIndex = -1; } } -- cgit v1.2.3