Fix -pluginMessage needing filename to work.

Remove filename restriction for -pluginMessage.

Fix #16273, close #16340
This commit is contained in:
Don Ho 2025-03-28 20:17:28 +01:00
parent 3ae0875a8c
commit 09abbad3d7

View File

@ -587,7 +587,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE /*hPrevInstance
} }
::SetForegroundWindow(hNotepad_plus); ::SetForegroundWindow(hNotepad_plus);
if (params.size() > 0) //if there are files to open, use the WM_COPYDATA system if (params.size() > 0 // if there are files to open, use the WM_COPYDATA system
|| !cmdLineParams._pluginMessage.empty()) // or pluginMessage is present, use the WM_COPYDATA system as well
{ {
CmdLineParamsDTO dto = CmdLineParamsDTO::FromCmdLineParams(cmdLineParams); CmdLineParamsDTO dto = CmdLineParamsDTO::FromCmdLineParams(cmdLineParams);