aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/process.cpp')
-rw-r--r--src/zencore/process.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zencore/process.cpp b/src/zencore/process.cpp
index 080607f13..0c55e6c7e 100644
--- a/src/zencore/process.cpp
+++ b/src/zencore/process.cpp
@@ -492,8 +492,10 @@ CreateProcNormal(const std::filesystem::path& Executable, std::string_view Comma
LPSECURITY_ATTRIBUTES ThreadAttributes = nullptr;
// Build environment block when custom environment variables are specified
+
ExtendableWideStringBuilder<512> EnvironmentBlock;
void* Environment = nullptr;
+
if (!Options.Environment.empty())
{
// Capture current environment into a map