diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-25 20:29:32 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-25 20:29:32 +0000 |
commit | 91d5b91fe12c9733db9fd4d8eb84bfbe674b0a2c (patch) | |
tree | 30abd84eb2aa65aa9e9b2509fe3d16df4340f685 /src | |
parent | 98c9aad15f13fe27c6a456836c88b94e364a5068 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdchat/src/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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');
|