From 91d5b91fe12c9733db9fd4d8eb84bfbe674b0a2c Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Tue, 25 Nov 2014 20:29:32 +0000 Subject: TabSRMM null ptr fixes and code cleanup require for review. git-svn-id: http://svn.miranda-ng.org/main/trunk@11065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdchat/src/window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/core/stdchat/src/window.cpp b/src/core/stdchat/src/window.cpp index c868446d7a..b14db35b51 100644 --- a/src/core/stdchat/src/window.cpp +++ b/src/core/stdchat/src/window.cpp @@ -2317,6 +2317,8 @@ LABEL_SHOWWINDOW: case IDOK: if (IsWindowEnabled(GetDlgItem(hwndDlg, IDOK))) { char *pszRtf = Message_GetFromStream(hwndDlg, si); + if (pszRtf == NULL) + break; pci->SM_AddCommand(si->ptszID, si->pszModule, pszRtf); TCHAR *ptszText = DoRtfToTags(pszRtf, si); TCHAR *p1 = _tcschr(ptszText, '\0'); -- cgit v1.2.3