@@ -5126,7 +5126,7 @@ CString strMessage;
5126
5126
dlg.m_strRecallLinePreamble );
5127
5127
5128
5128
if (!strMessage.IsEmpty ())
5129
- CreateTextWindow (strMessage,
5129
+ CreateTextWindow ((LPCTSTR) strMessage,
5130
5130
TFormat (" Recall: %s" ,
5131
5131
(LPCTSTR) m_RecallFindInfo.m_strFindStringList .GetHead ()),
5132
5132
this ,
@@ -6403,8 +6403,11 @@ void CMUSHclientDoc::SendTo (
6403
6403
break ;
6404
6404
6405
6405
case eSendToNotepad:
6406
- CreateTextWindow (strSendText + ENDLINE, // contents
6407
- strDescription, // title
6406
+ {
6407
+ CString strContents = strSendText;
6408
+ strContents += ENDLINE;
6409
+ CreateTextWindow ((LPCTSTR) strContents, // contents
6410
+ (LPCTSTR) strDescription, // title
6408
6411
this , // document
6409
6412
m_iUniqueDocumentNumber, // document number
6410
6413
m_input_font_name,
@@ -6423,6 +6426,7 @@ void CMUSHclientDoc::SendTo (
6423
6426
false ,
6424
6427
eNotepadTrigger
6425
6428
);
6429
+ }
6426
6430
break ;
6427
6431
6428
6432
case eAppendToNotepad:
@@ -7435,7 +7439,9 @@ UINT dFormat = 0;
7435
7439
7436
7440
CloseClipboard();
7437
7441
7438
- CreateTextWindow (strMessage + ENDLINE, // contents
7442
+ CString strContents = strMessage;
7443
+ strContents += ENDLINE;
7444
+ CreateTextWindow ((LPCTSTR) strContents, // contents
7439
7445
"Clipboard contents", // title
7440
7446
this, // document
7441
7447
m_iUniqueDocumentNumber, // document number
0 commit comments