diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-05 22:50:33 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-05 22:50:33 +0300 |
commit | dd18f0c862d73400f9ad7eacbbfad565964e6186 (patch) | |
tree | a7673cf64e3d72c7aa259b88134e6264a99f8081 /plugins/Scriver | |
parent | e78c4a1a2cbb082374cf01275b3237459accbda6 (diff) |
fix for the input buffer size in Scriver
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 2 |
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)>, ptszUnicode);
if (RTL_Detect(ptszUnicode))
|