summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-30 18:43:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-30 18:43:55 +0300
commit10c4193c21b5085d0057a591f374f30a51d41453 (patch)
tree73b9835b56cf139062a4925845a069834161c45b /plugins/Clist_modern/src
parent5f2f07636e5a9c416bf9c2f6e071f8d5a7e224f3 (diff)
crash fix
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/modern_clcutils.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp
index 2aaabf8900..0fe627f991 100644
--- a/plugins/Clist_modern/src/modern_clcutils.cpp
+++ b/plugins/Clist_modern/src/modern_clcutils.cpp
@@ -407,10 +407,13 @@ int GetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt)
}
dat->selection = hit;
- if (!mir_strcmp(contact->pce->szProto, META_PROTO))
- return DROPTARGET_ONMETACONTACT;
+ if (contact->pce)
+ if (!mir_strcmp(contact->pce->szProto, META_PROTO))
+ return DROPTARGET_ONMETACONTACT;
+
if (contact->iSubNumber)
return DROPTARGET_ONSUBCONTACT;
+
return DROPTARGET_ONCONTACT;
}