From c7c0e011ddcfed4f9c3b49637bfeb8fa0d3d5a9d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Sep 2016 17:11:18 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@17302 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/clcutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3