summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-05 22:50:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-05 22:50:33 +0300
commitdd18f0c862d73400f9ad7eacbbfad565964e6186 (patch)
treea7673cf64e3d72c7aa259b88134e6264a99f8081 /plugins/Scriver/src/msgdialog.cpp
parente78c4a1a2cbb082374cf01275b3237459accbda6 (diff)
fix for the input buffer size in Scriver
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-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))