summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src/icons.cpp')
-rw-r--r--plugins/WhenWasIt/src/icons.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/WhenWasIt/src/icons.cpp b/plugins/WhenWasIt/src/icons.cpp
index 14db9fbd71..3e153a2533 100644
--- a/plugins/WhenWasIt/src/icons.cpp
+++ b/plugins/WhenWasIt/src/icons.cpp
@@ -33,7 +33,7 @@ HANDLE hWWIExtraIcons = (HANDLE) -1;
static HANDLE AddIcon(char *name, char *description, TCHAR *tszPath, int iDefaultIdx)
{
SKINICONDESC sid = { sizeof(sid) };
- sid.flags = SIDF_PATH_UNICODE;
+ sid.flags = SIDF_PATH_TCHAR;
sid.pszSection = "WhenWasIt";
sid.cx = sid.cy = 16;
sid.pszDescription = description;
@@ -74,8 +74,5 @@ int AddIcons()
HANDLE GetDTBIconHandle(int dtb)
{
- if (dtb >= cDTB || dtb < 0)
- return hDTBMore;
-
- return hDTB[dtb];
+ return ((dtb >= cDTB || dtb < 0) ? hDTBMore : hDTB[dtb]);
}