diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-26 15:11:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-26 15:11:06 +0300 |
commit | 493fe46e44eb71aa90da0689f4c924860a413265 (patch) | |
tree | 62f44ad58acab6826567eee796c8577b0967c93d /plugins | |
parent | 9fb53308fb29d51429927579fb45d171e2ce6c07 (diff) |
fixes #3464 (QuickSearch: crash on adding column)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/QuickSearch/src/window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/QuickSearch/src/window.cpp b/plugins/QuickSearch/src/window.cpp index 8624be7d98..b62fd978e3 100644 --- a/plugins/QuickSearch/src/window.cpp +++ b/plugins/QuickSearch/src/window.cpp @@ -243,6 +243,9 @@ INT_PTR QSMainDlg::NewLVProc(UINT msg, WPARAM wParam, LPARAM lParam) ti.uId = LPARAM(m_hwnd);
int num = ListViewToColumn(OldHSubItem);
+ if (num == -1)
+ break;
+
auto &pCol = g_plugin.m_columns[num];
if (pCol.isXstatus || pCol.isGender) {
auto *pRow = GetRow(OldHItem);
|