From 98ed178d7bcf81b113ca60fc55e63720f44cc388 Mon Sep 17 00:00:00 2001 From: stefansjfw <57057282+stefansjfw@users.noreply.github.com> Date: Tue, 17 Mar 2020 18:12:32 +0100 Subject: [PATCH] Double-qoute the paths when passing them as cmd args (#1604) --- src/modules/fancyzones/lib/FancyZones.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/fancyzones/lib/FancyZones.cpp b/src/modules/fancyzones/lib/FancyZones.cpp index 68e17054ba..e8d53977c1 100644 --- a/src/modules/fancyzones/lib/FancyZones.cpp +++ b/src/modules/fancyzones/lib/FancyZones.cpp @@ -474,9 +474,9 @@ void FancyZones::ToggleEditor() noexcept /*1*/ std::to_wstring(reinterpret_cast(monitor)) + L" " + /*2*/ editorLocation + L" " + /*3*/ zoneWindow->WorkAreaKey() + L" " + - /*4*/ ZoneWindowUtils::GetActiveZoneSetTmpPath() + L" " + - /*5*/ ZoneWindowUtils::GetAppliedZoneSetTmpPath() + L" " + - /*6*/ ZoneWindowUtils::GetCustomZoneSetsTmpPath(); + /*4*/ L"\"" + ZoneWindowUtils::GetActiveZoneSetTmpPath() + L"\" " + + /*5*/ L"\"" + ZoneWindowUtils::GetAppliedZoneSetTmpPath() + L"\" " + + /*6*/ L"\"" + ZoneWindowUtils::GetCustomZoneSetsTmpPath() + L"\""; SHELLEXECUTEINFO sei{ sizeof(sei) }; sei.fMask = { SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI };