summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-22 19:03:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-22 19:03:27 +0300
commit4f510d6e82caeee262234d7b83ce2c4db3c82102 (patch)
treec57b510b99665ddf392c17033d099b8cb44da622 /plugins/Clist_modern
parent78e7e8cb56e06584a9bfb95a984f9ebe19567d6d (diff)
more thorough fix for #2991
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp
index a8145473b4..3b2a64c481 100644
--- a/plugins/Clist_modern/src/modern_clc.cpp
+++ b/plugins/Clist_modern/src/modern_clc.cpp
@@ -952,7 +952,7 @@ static LRESULT clcOnMouseMove(ClcData *dat, HWND hwnd, UINT, WPARAM wParam, LPAR
dat->dragStage &= ~DRAGSTAGEF_OUTSIDE;
}
- ClcContact *contSour, *contDest;
+ ClcContact *contSour = nullptr, *contDest = nullptr;
cliGetRowByIndex(dat, dat->selection, &contDest, nullptr);
cliGetRowByIndex(dat, dat->iDragItem, &contSour, nullptr);
@@ -1081,7 +1081,7 @@ static LRESULT clcOnLButtonUp(ClcData *dat, HWND hwnd, UINT msg, WPARAM wParam,
POINT pt = UNPACK_POINT(lParam);
int target = GetDropTargetInformation(hwnd, dat, pt);
- ClcContact *contDest, *contSour;
+ ClcContact *contDest = nullptr, *contSour = nullptr;
cliGetRowByIndex(dat, dat->iDragItem, &contSour, nullptr);
cliGetRowByIndex(dat, dat->selection, &contDest, nullptr);