diff options
Diffstat (limited to 'src/core/stdchat')
-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');
|