From 2859081c36402ea7fcbbe4e52799b62e7537ffbf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 Oct 2018 20:11:54 +0300 Subject: fixes #1607 (Scriver silently cuts long messages) --- plugins/Scriver/src/msgdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 96bf1e24fc..4b11aea221 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -266,7 +266,7 @@ bool CSrmmWindow::OnInitDialog() if (m_hContact && m_szProto) { int nMax = CallProtoService(m_szProto, PS_GETCAPS, PFLAG_MAXLENOFMESSAGE, m_hContact); if (nMax) - m_message.SendMsg(EM_LIMITTEXT, nMax, 0); + m_message.SendMsg(EM_EXLIMITTEXT, 0, nMax); } // get around a lame bug in the Windows template resource code where richedits are limited to 0x7FFF -- cgit v1.2.3