mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Increase CURRENT_LINESTR variable length of run dialog
Increase CURRENT_LINESTR variable length from (2048 - 1) to (16384 * 2 - 1). Fix #16840, close #16859
This commit is contained in:
parent
fe3f609361
commit
11bc8107b0
@ -1013,7 +1013,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||||||
case NPPM_GETCURRENTWORD:
|
case NPPM_GETCURRENTWORD:
|
||||||
case NPPM_GETCURRENTLINESTR:
|
case NPPM_GETCURRENTLINESTR:
|
||||||
{
|
{
|
||||||
const int strSize = CURRENTWORD_MAXLENGTH;
|
const int strSize = FINDREPLACE_MAXLENGTH * 2;
|
||||||
wchar_t str[strSize] = { '\0' };
|
wchar_t str[strSize] = { '\0' };
|
||||||
wchar_t *pTchar = reinterpret_cast<wchar_t *>(lParam);
|
wchar_t *pTchar = reinterpret_cast<wchar_t *>(lParam);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user