From 109b8700756c3393b97f020de3f2bd5a38b2bcac Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 26 Jan 2015 01:07:23 +0000 Subject: TabSRMM: wine crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11914 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/container.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3