diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-15 23:27:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-15 23:27:36 +0300 |
commit | 26bd8f6d1d866c578a4181127674cf36a1111db8 (patch) | |
tree | 86ba8982adf24f93845cc4f334af799a06cd7631 /plugins/TabSRMM/src/container.cpp | |
parent | 3d95ec897aba52663e8aa919bb8dd9eed5f74dbc (diff) |
fixes #1425 (TabSRMM crashes)
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 434132d3d3..ec89264f68 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1327,8 +1327,8 @@ panel_found: if (curItem >= 0) {
TCITEM item;
tci.mask = TCIF_PARAM;
- TabCtrl_GetItem(hwndTab, curItem, &item);
- SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0);
+ if (TabCtrl_GetItem(hwndTab, curItem, &item))
+ SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0);
}
break;
}
|