summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-11-11 20:20:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-11-11 20:20:24 +0000
commit6df76366ce242536fd4e29fb4f225f07fba2a0ba (patch)
treea46a4567aa7e7d5c3e069dfbd79d9a5616256f55 /src/mir_app
parent939d37f5c47b87f207773eb4e2f95c86085541bf (diff)
fix for the broken MS_CLIST_CONTACTSCOMPARE
git-svn-id: http://svn.miranda-ng.org/main/trunk@15712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clistmod.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/clistmod.cpp b/src/mir_app/src/clistmod.cpp
index 701ef7da12..e99ea438df 100644
--- a/src/mir_app/src/clistmod.cpp
+++ b/src/mir_app/src/clistmod.cpp
@@ -396,8 +396,10 @@ int fnShowHide(WPARAM, LPARAM)
static INT_PTR CompareContacts(WPARAM wParam, LPARAM lParam)
{
ClcContact *p1, *p2;
- if (!cli.pfnFindItem(cli.hwndContactTree, NULL, wParam, &p1, NULL, NULL) && !cli.pfnFindItem(cli.hwndContactTree, NULL, lParam, &p2, NULL, NULL))
- return cli.pfnCompareContacts(p1, p2);
+ ClcData *dat = (ClcData*)GetWindowLongPtr(cli.hwndContactTree, 0);
+ if (dat != NULL)
+ if (!cli.pfnFindItem(cli.hwndContactTree, dat, wParam, &p1, NULL, NULL) && !cli.pfnFindItem(cli.hwndContactTree, dat, lParam, &p2, NULL, NULL))
+ return cli.pfnCompareContacts(p1, p2);
return 0;
}