diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-27 19:33:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-27 19:33:57 +0300 |
commit | 0b23894fe5401b48cfdd7eb4c82a65d237828d38 (patch) | |
tree | bfabe2ae3b0282bb9d53e72204cb091f3099f4ba /src/mir_app | |
parent | 38b76a7b31a991a4b7ec758f4cb7a872e3b5a994 (diff) |
fixes #2188 (Clist_modern: crash at "clc.cpp (1135))
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp index b9a7ae9c85..3e529e2e02 100644 --- a/src/mir_app/src/clc.cpp +++ b/src/mir_app/src/clc.cpp @@ -1117,6 +1117,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT uMsg, WPARAM wParam }
}
break;
+
case DROPTARGET_OUTSIDE:
g_clistApi.pfnGetRowByIndex(dat, dat->iDragItem, &contact, nullptr);
{
@@ -1130,10 +1131,12 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT uMsg, WPARAM wParam SendMessage(GetParent(hwnd), WM_NOTIFY, 0, (LPARAM)& nm);
}
break;
+
default:
g_clistApi.pfnGetRowByIndex(dat, dat->iDragItem, &contact, &group);
- if (!group->parent)
+ if (group && !group->parent)
break;
+
if (contact->type == CLCIT_GROUP) { //dropee is a group
wchar_t szNewName[120];
mir_wstrncpy(szNewName, contact->szText, _countof(szNewName));
|