summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-11 08:18:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-11 08:18:18 +0000
commitdd06408b42291bb08dd649a1ff2138531281a47a (patch)
tree2e425409a4c46fe01cfee0d0afd0b0dbdadacad2
parentba430f779e1f3692d563c48b3517915429bd393d (diff)
correct jabber icon passing
git-svn-id: http://svn.miranda-ng.org/main/trunk@4421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp5
1 files changed, 3 insertions, 2 deletions
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);