summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r--plugins/TabSRMM/src/container.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}