summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/classPsTreeItem.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-10-30 17:45:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-10-30 17:45:38 +0300
commitaea29a34173d692e237b1c74de8d10c76b4dfd0d (patch)
treee73e0b2183fc16a041cb040f14e2f412f9ea9313 /plugins/UserInfoEx/src/classPsTreeItem.cpp
parentfb2a5533369f32e47f07810e0a360da0ddbadfba (diff)
OPTIONSDIALOGPAGE::hIcon - also unused
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp')
-rw-r--r--plugins/UserInfoEx/src/classPsTreeItem.cpp7
1 files changed, 2 insertions, 5 deletions
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;
}
}