From dd06408b42291bb08dd649a1ff2138531281a47a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 11 Apr 2013 08:18:18 +0000 Subject: correct jabber icon passing git-svn-id: http://svn.miranda-ng.org/main/trunk@4421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_proto.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 967176d71a..b6aaf3e8f9 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -294,13 +294,14 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM) JHookEvent(ME_GC_BUILDMENU, &CJabberProto::JabberGcMenuHook); } + HICON hIcon = LoadIconEx("main"); StatusIconData sid = { sizeof(sid) }; sid.szModule = m_szModuleName; - sid.hIcon = sid.hIconDisabled = LoadIconEx("main"); + sid.hIcon = CopyIcon(hIcon); sid.flags = MBF_HIDDEN; sid.szTooltip = Translate("Jabber Resource"); Srmm_AddIcon(&sid); - Skin_ReleaseIcon(sid.hIcon); + Skin_ReleaseIcon(hIcon); JHookEvent(ME_MSG_ICONPRESSED, &CJabberProto::OnProcessSrmmIconClick); JHookEvent(ME_MSG_WINDOWEVENT, &CJabberProto::OnProcessSrmmEvent); -- cgit v1.2.3