From 1c6adee432acbc6ea6e8f7108d972d85f1017232 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Aug 2013 18:07:41 +0000 Subject: fixes for StatusIconData initialization git-svn-id: http://svn.miranda-ng.org/main/trunk@5863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/Flags/svc_flags.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'plugins/UserInfoEx/src/Flags') 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); -- cgit v1.2.3