From 5a35488d2f107792247186c995e9970f7406487b Mon Sep 17 00:00:00 2001 From: Dustin Howett Date: Mon, 22 Mar 2021 11:21:52 -0500 Subject: [PATCH] Revert "Remove the shell extension's dependency on fmt for huge savings (#9552)" This reverts commit 9069fcab7991419953d7a321c9c71e9da6cc6daa. --- src/cascadia/ShellExtension/OpenTerminalHere.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/ShellExtension/OpenTerminalHere.cpp b/src/cascadia/ShellExtension/OpenTerminalHere.cpp index 60ad959bd47d..48b9cffe2906 100644 --- a/src/cascadia/ShellExtension/OpenTerminalHere.cpp +++ b/src/cascadia/ShellExtension/OpenTerminalHere.cpp @@ -56,7 +56,7 @@ HRESULT OpenTerminalHere::Invoke(IShellItemArray* psiItemArray, siEx.StartupInfo.cb = sizeof(STARTUPINFOEX); // Append a "\." to the given path, so that this will work in "C:\" - auto cmdline{ wil::str_printf(LR"-("%s" -d "%s\.")-", GetWtExePath().c_str(), pszName.get()) }; + std::wstring cmdline = fmt::format(L"\"{}\" -d \"{}\\.\"", GetWtExePath(), pszName.get()); RETURN_IF_WIN32_BOOL_FALSE(CreateProcessW( nullptr, cmdline.data(),