Copy environment block rather than setting extra variables.
authorIain Patterson <me@iain.cx>
Thu, 9 Jan 2014 18:27:00 +0000 (18:27 +0000)
committerIain Patterson <me@iain.cx>
Thu, 9 Jan 2014 18:27:00 +0000 (18:27 +0000)
commitbf6fbeb0064d2e33f57ae30a1a37a01b46d37e6c
tree124477654d8f7064ac4b46a0c2e90bb3bbd879e7
parent153133aedadde24a5836707caa3ae3632e422ef3
Copy environment block rather than setting extra variables.

If AppEnvironmentExtra is configured we were calling
SetEnvironmentVariable() to append each one to the existing environment.
That's arguably wrong as it could mess up NSSM's own environment.

Instead we now call GetEnvironmentStrings() and take a copy of the
current environment ebfore appending the extra environment as we were
doing before.
registry.cpp