summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:11:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-16 17:11:18 +0000
commitc7c0e011ddcfed4f9c3b49637bfeb8fa0d3d5a9d (patch)
tree80bae54610bb065555b01a3cadc93b9670c0c020 /src/mir_app
parent678bf995c627d261588c23a0909073415ca36a7f (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@17302 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clcutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/clcutils.cpp b/src/mir_app/src/clcutils.cpp
index 6b10fd8e65..5010ba3ff1 100644
--- a/src/mir_app/src/clcutils.cpp
+++ b/src/mir_app/src/clcutils.cpp
@@ -541,7 +541,7 @@ int fnGetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt)
cli.pfnGetRowByIndex(dat, dat->iDragItem, &movecontact, &movegroup);
if (hit == dat->iDragItem)
return DROPTARGET_ONSELF;
- if (hit == -1 || hitFlags & CLCHT_ONITEMEXTRA)
+ if (hit == -1 || movecontact == NULL || (hitFlags & CLCHT_ONITEMEXTRA))
return DROPTARGET_ONNOTHING;
if (movecontact->type == CLCIT_GROUP) {