From 37009be2fd13cefd62d08ba271636ddc5859d447 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Mar 2017 23:53:44 +0300 Subject: possible crash fix --- plugins/TabSRMM/src/container.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 63f7d3e731..5fe3659af7 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1154,7 +1154,8 @@ panel_found: GetClientRect(hwndTab, &rc); if (!((rc.right - rc.left) == pContainer->oldSize.cx && (rc.bottom - rc.top) == pContainer->oldSize.cy)) { dat = (CTabBaseDlg*)GetWindowLongPtr(pContainer->hwndActive, GWLP_USERDATA); - dat->DM_ScrollToBottom(0, 0); + if (dat) + dat->DM_ScrollToBottom(0, 0); SendMessage(pContainer->hwndActive, WM_SIZE, 0, 0); } pContainer->bSizingLoop = FALSE; -- cgit v1.2.3