Fix Prepend case for environment variables (!)

This commit is contained in:
baldurk
2017-09-04 11:00:38 +01:00
parent e790c39f5f
commit ac77eeb98e
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -192,10 +192,12 @@ void Process::ApplyEnvironmentModification()
{
if(!value.empty())
{
std::string prep = m.value;
if(m.sep == EnvSep::Platform || m.sep == EnvSep::Colon)
value += ":";
prep += ":";
else if(m.sep == EnvSep::SemiColon)
value += ";";
prep += ";";
value = prep + value;
}
else
{
+4 -2
View File
@@ -133,10 +133,12 @@ void Process::ApplyEnvironmentModification()
{
if(!value.empty())
{
std::string prep = m.value;
if(m.sep == EnvSep::Platform || m.sep == EnvSep::SemiColon)
value += ";";
prep += ";";
else if(m.sep == EnvSep::Colon)
value += ":";
prep += ":";
value = prep + value;
}
else
{