summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 80585493ba..4709a0a2e6 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -464,7 +464,7 @@ void CSrmmWindow::onClick_Ok(CCtrlButton *pButton)
GETTEXTEX gt = { 0 };
gt.flags = GT_USECRLF;
- gt.cb = bufSize;
+ gt.cb = bufSize * sizeof(wchar_t);
gt.codepage = 1200; // Unicode
m_message.SendMsg(EM_GETTEXTEX, (WPARAM)&gt, ptszUnicode);
if (RTL_Detect(ptszUnicode))