summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src/icons.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-12-05 19:56:06 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-12-05 19:56:06 +0000
commit2cc3a9b83f61b8ddc3338574c466c892ffe8c02b (patch)
tree46bf7da3a7e6bf0ac6997fb0c028a5dba32fbb05 /plugins/WhenWasIt/src/icons.cpp
parent3cd022db126b5de4ba485172875a3919b79d00ca (diff)
fixed popup icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@2656 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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]);
}