diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-15 23:38:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-15 23:38:56 +0300 |
commit | 78c9b53dfe547ce768297f952ea79903b792de03 (patch) | |
tree | 5e298aa99a747065375acd3abdc984b0d3611e11 /plugins/TabSRMM/src/container.cpp | |
parent | 26bd8f6d1d866c578a4181127674cf36a1111db8 (diff) |
more thorough version of previous fix
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 5 |
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;
}
|