aboutsummaryrefslogtreecommitdiff
path: root/zenserver/compute/apply.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-27 20:51:52 +0200
committerStefan Boberg <[email protected]>2021-09-27 20:51:52 +0200
commit4ef4195aa9e190fd40b5b52511f44951ba897d0f (patch)
treea8fedb5535fd0cf0ba73f17295630ce284bc6382 /zenserver/compute/apply.cpp
parentzenserver: added better detection of whether we are running as a service (diff)
downloadzen-4ef4195aa9e190fd40b5b52511f44951ba897d0f.tar.xz
zen-4ef4195aa9e190fd40b5b52511f44951ba897d0f.zip
apply: Re-enabled environment variable setup for child processes
Diffstat (limited to 'zenserver/compute/apply.cpp')
-rw-r--r--zenserver/compute/apply.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/compute/apply.cpp b/zenserver/compute/apply.cpp
index 15d9e0141..a522aa35b 100644
--- a/zenserver/compute/apply.cpp
+++ b/zenserver/compute/apply.cpp
@@ -767,8 +767,8 @@ HttpFunctionService::ExecAction(const WorkerDesc& Worker, CbObject Action)
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
- nullptr, // (LPVOID)EnvironmentBlock.c_str(), // Environment block
- SandboxPath.c_str(), // Current directory
+ (LPVOID)EnvironmentBlock.Data(), // Environment block
+ SandboxPath.c_str(), // Current directory
&StartupInfo,
/* out */ &ProcessInformation);