diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-15 20:23:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-15 20:23:12 +0300 |
commit | d1bce64c343d78f4ca06406be784ac3669629708 (patch) | |
tree | 28cf15b832843d3a9f3acceb1c1ff91ec9957588 /plugins/TabSRMM/src/tabctrl.cpp | |
parent | 2c49a47dd937b34dc7f3cef22dca5aa21ccf81be (diff) |
fixes #753 (broken tabs dragging)
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index 253ff90468..b4d1b6947f 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -1111,11 +1111,9 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara int i = GetTabItemFromMouse(hwnd, &pt);
if (i != -1) {
TCITEM tc;
- CSrmmWindow *dat = nullptr;
-
tc.mask = TCIF_PARAM;
TabCtrl_GetItem(hwnd, i, &tc);
- dat = (CSrmmWindow*)GetWindowLongPtr((HWND)tc.lParam, GWLP_USERDATA);
+ CSrmmWindow *dat = (CSrmmWindow*)GetWindowLongPtr((HWND)tc.lParam, GWLP_USERDATA);
if (dat) {
tabdat->bDragging = TRUE;
tabdat->iBeginIndex = i;
|