From 523a4f2fbf8be01f92c287aa7465b0fde5219e0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Mar 2017 18:31:49 +0300 Subject: crash fix --- plugins/TabSRMM/src/container.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index e2fbfaed7e..5bdb93a08a 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -710,7 +710,8 @@ static INT_PTR CALLBACK DlgProcContainer(HWND hwndDlg, UINT msg, WPARAM wParam, SWP_NOSENDCHANGING | SWP_NOACTIVATE/*|SWP_NOCOPYBITS*/); if (!pContainer->bSizingLoop && sizeChanged) { dat = (CTabBaseDlg*)GetWindowLongPtr(pContainer->hwndActive, GWLP_USERDATA); - dat->DM_ScrollToBottom(0, 1); + if (dat) + dat->DM_ScrollToBottom(0, 1); } } else if (sizeChanged) -- cgit v1.2.3