From e74a61818c5bf1a51bee9e7f4cafd09c2b106448 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Jun 2018 20:38:43 +0300 Subject: final fix for #1425 --- plugins/TabSRMM/src/container.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/TabSRMM/src/container.cpp') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index c68889503b..bf8ac41aef 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1325,11 +1325,9 @@ panel_found: int curItem = TabCtrl_GetCurSel(hwndTab); if (curItem >= 0) { - TCITEM item = {}; tci.mask = TCIF_PARAM; - if (TabCtrl_GetItem(hwndTab, curItem, &item)) - if (item.lParam) - SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0); + if (TabCtrl_GetItem(hwndTab, curItem, &tci)) + SendMessage((HWND)tci.lParam, WM_ACTIVATE, WA_INACTIVE, 0); } break; } -- cgit v1.2.3