summaryrefslogtreecommitdiff
path: root/src/modules/clist/clcfiledrop.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-09 23:26:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-09 23:26:57 +0000
commit853f7d78cb301223aa1ac8b3150cf9a642fb5662 (patch)
treef56ec88c4a18e51d6dd8e206d9816741fffa9f08 /src/modules/clist/clcfiledrop.cpp
parent3c835ffde2e9d9aad789f222413f99e878efa157 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2267 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/clcfiledrop.cpp')
-rw-r--r--src/modules/clist/clcfiledrop.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/modules/clist/clcfiledrop.cpp b/src/modules/clist/clcfiledrop.cpp
index a190e714c5..411705f6c8 100644
--- a/src/modules/clist/clcfiledrop.cpp
+++ b/src/modules/clist/clcfiledrop.cpp
@@ -70,19 +70,17 @@ ULONG CDropTarget::Release(void)
static HANDLE HContactFromPoint(HWND hwnd, struct ClcData *dat, int x, int y, int *hitLine)
{
- int hit;
- ClcContact *contact;
DWORD hitFlags;
- char *szProto;
- DWORD protoCaps;
-
- hit = cli.pfnHitTest(hwnd, dat, x, y, &contact, NULL, &hitFlags);
+ ClcContact *contact;
+ int hit = cli.pfnHitTest(hwnd, dat, x, y, &contact, NULL, &hitFlags);
if (hit == -1 || !(hitFlags & (CLCHT_ONITEMLABEL | CLCHT_ONITEMICON)) || contact->type != CLCIT_CONTACT)
return NULL;
- szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) contact->hContact, 0);
+
+ char *szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) contact->hContact, 0);
if (szProto == NULL)
return NULL;
- protoCaps = CallProtoServiceInt(NULL,szProto, PS_GETCAPS, PFLAGNUM_1, 0);
+
+ DWORD protoCaps = CallProtoServiceInt(NULL,szProto, PS_GETCAPS, PFLAGNUM_1, 0);
if ( !(protoCaps & PF1_FILESEND))
return NULL;
if (ID_STATUS_OFFLINE == DBGetContactSettingWord(contact->hContact, szProto, "Status", ID_STATUS_OFFLINE))