summaryrefslogtreecommitdiff
path: root/Plugins/extraicons/DefaultExtraIcons.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-23 04:31:27 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-23 04:31:27 +0000
commit3892d0da37e70a6c0106e57dad835e9a67933b02 (patch)
tree4ae8600d4eb5acce08a42b68d1d218c4e47153cc /Plugins/extraicons/DefaultExtraIcons.cpp
parentd27127d44576580e3a0000590b6179f06cc67b8e (diff)
extraicons: start of group code
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@168 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/extraicons/DefaultExtraIcons.cpp')
-rw-r--r--Plugins/extraicons/DefaultExtraIcons.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Plugins/extraicons/DefaultExtraIcons.cpp b/Plugins/extraicons/DefaultExtraIcons.cpp
index 7acc9e6..100f8e8 100644
--- a/Plugins/extraicons/DefaultExtraIcons.cpp
+++ b/Plugins/extraicons/DefaultExtraIcons.cpp
@@ -350,15 +350,14 @@ static ProtoInfo *FindProto(const char * proto)
static int ProtocolApplyIcon(WPARAM wParam, LPARAM lParam)
{
HANDLE hContact = (HANDLE) wParam;
- int slot = (int) lParam;
char *proto = (char*) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) hContact, 0);
if (IsEmpty(proto))
return 0;
- HANDLE hImage = NULL;
-
ProtoInfo *pi = FindProto(proto);
+
+ HANDLE hImage = NULL;
if (pi != NULL)
hImage = pi->hImage;
@@ -379,6 +378,6 @@ static int ProtocolOnClick(WPARAM wParam, LPARAM lParam, LPARAM param)
static void ProtocolInit()
{
- hExtraProto = ExtraIcon_Register("protocol", "Account", "core_main_34",
- &ProtocolRebuildIcons, &ProtocolApplyIcon, &ProtocolOnClick);
+ hExtraProto = ExtraIcon_Register("protocol", "Account", "core_main_34", &ProtocolRebuildIcons, &ProtocolApplyIcon,
+ &ProtocolOnClick);
}