diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-06 18:31:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-06 18:31:49 +0300 |
commit | 523a4f2fbf8be01f92c287aa7465b0fde5219e0d (patch) | |
tree | 912a57b76f219f405aa47ad28508a588f5c28b51 | |
parent | 4b1fe58efea33f631851e4b715d72814775f3363 (diff) |
crash fix
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)
|