summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/classPsTreeItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp')
-rw-r--r--plugins/UserInfoEx/src/classPsTreeItem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/classPsTreeItem.cpp b/plugins/UserInfoEx/src/classPsTreeItem.cpp
index f31c4fada9..cc50b035dc 100644
--- a/plugins/UserInfoEx/src/classPsTreeItem.cpp
+++ b/plugins/UserInfoEx/src/classPsTreeItem.cpp
@@ -314,12 +314,13 @@ int CPsTreeItem::Icon(HIMAGELIST hIml, OPTIONSDIALOGPAGE *odp, BYTE bInitIconsOn
HICON hIcon = IcoLib_GetIcon(pszIconName);
if (!hIcon) {
bool bNeedFree = false;
+ ptrW pwszSection(mir_a2u(SECT_TREE));
SKINICONDESC sid = { 0 };
- sid.flags = SIDF_ALL_UNICODE;
+ sid.flags = SIDF_PATH_UNICODE;
sid.pszName = (LPSTR)pszIconName;
sid.description.w = _ptszLabel;
- sid.section.w = _A2W(SECT_TREE);
+ sid.section.w = pwszSection;
// the item to insert brings along an icon?
if (odp->flags & ODPF_ICON) {