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:
Don Ho 2025-07-24 20:19:53 +02:00
parent fe3f609361
commit 11bc8107b0

View File

@ -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);