From 2e66fe000765d7923f731ef8f1e524a27ddc0912 Mon Sep 17 00:00:00 2001 From: xomx Date: Wed, 3 Aug 2022 14:51:23 +0200 Subject: [PATCH] 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 --- PowerEditor/src/Parameters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/Parameters.h b/PowerEditor/src/Parameters.h index 008477a0a..a0f549ea0 100644 --- a/PowerEditor/src/Parameters.h +++ b/PowerEditor/src/Parameters.h @@ -282,8 +282,8 @@ struct CmdLineParamsDTO intptr_t _pos2go = 0; LangType _langType = L_EXTERNAL; - wchar_t _udlName[MAX_PATH]; - wchar_t _pluginMessage[MAX_PATH]; + wchar_t _udlName[MAX_PATH] = {'\0'}; + wchar_t _pluginMessage[MAX_PATH] = {'\0'}; static CmdLineParamsDTO FromCmdLineParams(const CmdLineParams& params) {