summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/container.cpp4
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;
}