diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-01-26 01:07:23 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-01-26 01:07:23 +0000 |
commit | 109b8700756c3393b97f020de3f2bd5a38b2bcac (patch) | |
tree | 5ca1b9baa1f574879a01f0fa51bfc2a51bcbea57 /plugins/TabSRMM/src/container.cpp | |
parent | 0072a0880c077fc0a21fd57214e6c5bf8497402a (diff) |
TabSRMM: wine crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11914 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 7cdeb10e5d..1c24f0129b 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -719,6 +719,8 @@ static INT_PTR CALLBACK DlgProcContainer(HWND hwndDlg, UINT msg, WPARAM wParam, break; case WM_NOTIFY: + if (pContainer == NULL) + break; if (pContainer->MenuBar) { LRESULT processed = pContainer->MenuBar->processMsg(msg, wParam, lParam); if (processed != -1) { @@ -1799,6 +1801,8 @@ TContainerData* TSAPI CreateContainer(const TCHAR *name, int iTemp, MCONTACT hCo return NULL; TContainerData *pContainer = (TContainerData*)mir_calloc(sizeof(TContainerData)); + if (pContainer == NULL) + return NULL; _tcsncpy(pContainer->szName, name, CONTAINER_NAMELEN + 1); AppendToContainerList(pContainer); |