diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-01 18:53:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-01 18:53:46 +0000 |
commit | e47e740b5138c81b7ddac61e99fa8bb9a39a3559 (patch) | |
tree | a94cf01cff15397f1b0959a0f7dbc6e013d34a4a /protocols/JabberG/src/jabber_proto.cpp | |
parent | 08dc0f0af530f082093315d61ecb2377a410e88c (diff) |
useless icon copying removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@7447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_proto.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 3eb45ebe43..c47cf3eb90 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -233,14 +233,12 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM) HookProtoEvent(ME_GC_EVENT, &CJabberProto::JabberGcEventHook);
HookProtoEvent(ME_GC_BUILDMENU, &CJabberProto::JabberGcMenuHook);
- HICON hIcon = LoadIconEx("main");
StatusIconData sid = { sizeof(sid) };
sid.szModule = m_szModuleName;
- sid.hIcon = CopyIcon(hIcon);
+ sid.hIcon = LoadIconEx("main");
sid.flags = MBF_HIDDEN;
sid.szTooltip = LPGEN("Jabber Resource");
Srmm_AddIcon(&sid);
- Skin_ReleaseIcon(hIcon);
HookProtoEvent(ME_MSG_ICONPRESSED, &CJabberProto::OnProcessSrmmIconClick);
HookProtoEvent(ME_MSG_WINDOWEVENT, &CJabberProto::OnProcessSrmmEvent);
|