diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-27 18:07:41 +0000 |
commit | 1c6adee432acbc6ea6e8f7108d972d85f1017232 (patch) | |
tree | 63c053f199c8c928f3911c2a1a719b853104d7a2 /plugins/UserInfoEx/src | |
parent | 86f31d8f021efa4145a6a67a775f5b72ffc5348d (diff) |
fixes for StatusIconData initialization
git-svn-id: http://svn.miranda-ng.org/main/trunk@5863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src')
-rw-r--r-- | plugins/UserInfoEx/src/Flags/svc_flags.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/UserInfoEx/src/Flags/svc_flags.cpp b/plugins/UserInfoEx/src/Flags/svc_flags.cpp index 13f4a007de..da66562cf0 100644 --- a/plugins/UserInfoEx/src/Flags/svc_flags.cpp +++ b/plugins/UserInfoEx/src/Flags/svc_flags.cpp @@ -399,15 +399,12 @@ static __inline int MessageAPI_AddIcon(const char* pszName, const char* szModul/ {
HICON hIcon = Skin_GetIcon(pszName);
- StatusIconData sid = {0};
- sid.cbSize = sizeof(sid);
- sid.szModule = (char*)szModul;
- sid.dwId = (DWORD)ID;
- sid.hIcon = (hIcon!=NULL)?CopyIcon(hIcon):NULL;
+ StatusIconData sid = { sizeof(sid) };
+ sid.szModule = (char*)szModul;
+ sid.dwId = (DWORD)ID;
+ sid.hIcon = (hIcon!=NULL)?CopyIcon(hIcon):NULL;
+ sid.szTooltip = Translate((char*)CallService(MS_UTILS_GETCOUNTRYBYNUMBER,ID,0));
Skin_ReleaseIcon(hIcon); /* does NULL check */
-// sid.hIconDisabled = sid.hIcon/*NULL*/;
- sid.flags = 0;
- sid.szTooltip = Translate((char*)CallService(MS_UTILS_GETCOUNTRYBYNUMBER,ID,0));
int res = -1;
IconList* p = new IconList(&sid);
|