From 78c9b53dfe547ce768297f952ea79903b792de03 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 Jun 2018 23:38:56 +0300 Subject: more thorough version of previous fix --- plugins/TabSRMM/src/container.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/container.cpp') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index ec89264f68..c68889503b 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1325,10 +1325,11 @@ panel_found: int curItem = TabCtrl_GetCurSel(hwndTab); if (curItem >= 0) { - TCITEM item; + TCITEM item = {}; tci.mask = TCIF_PARAM; if (TabCtrl_GetItem(hwndTab, curItem, &item)) - SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0); + if (item.lParam) + SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0); } break; } -- cgit v1.2.3