Fix drag n drop documents crash between 2 instances

Fixes uninitialized CmdLineParamsDTO parameters:
uninitialized _udlName could cause crash when drag&drop files between different Notepad++ instances.

Fix #11976, close #11977
This commit is contained in:
xomx 2022-08-03 14:51:23 +02:00 committed by Don Ho
parent 70660eb608
commit 2e66fe0007
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ struct CmdLineParamsDTO
intptr_t _pos2go = 0; intptr_t _pos2go = 0;
LangType _langType = L_EXTERNAL; LangType _langType = L_EXTERNAL;
wchar_t _udlName[MAX_PATH]; wchar_t _udlName[MAX_PATH] = {'\0'};
wchar_t _pluginMessage[MAX_PATH]; wchar_t _pluginMessage[MAX_PATH] = {'\0'};
static CmdLineParamsDTO FromCmdLineParams(const CmdLineParams& params) static CmdLineParamsDTO FromCmdLineParams(const CmdLineParams& params)
{ {