Expand environment variables in ConptyConnection (#3549)

Fixes #3548.
This commit is contained in:
Dustin L. Howett (MSFT) 2019-11-12 16:47:57 -08:00 committed by GitHub
parent d2ca3c1fb0
commit fe4c80b27d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation
NULL,
NULL));
std::wstring cmdline{ _commandline.c_str() }; // mutable copy -- required for CreateProcessW
std::wstring cmdline{ wil::ExpandEnvironmentStringsW<std::wstring>(_commandline.c_str()) }; // mutable copy -- required for CreateProcessW
Utils::EnvironmentVariableMapW environment;