diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-11 23:53:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-11 23:53:44 +0300 |
commit | 37009be2fd13cefd62d08ba271636ddc5859d447 (patch) | |
tree | f9a0daee282aa42377db60304573c5a7b7c0aa89 | |
parent | 4e925b0dd277356ac445bd8ca1bce51b65bbc77e (diff) |
possible 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 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;
|