aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Win32/Program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Win32/Program.cpp')
-rw-r--r--lib/System/Win32/Program.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/System/Win32/Program.cpp b/lib/System/Win32/Program.cpp
index 4aff5e969c..92b024348c 100644
--- a/lib/System/Win32/Program.cpp
+++ b/lib/System/Win32/Program.cpp
@@ -70,7 +70,7 @@ Program::FindProgramByName(const std::string& progName) {
int
Program::ExecuteAndWait(const Path& path,
const std::vector<std::string>& args,
- const char** env) {
+ const char** envp) {
if (!path.executable())
throw path.toString() + " is not executable";
@@ -125,9 +125,8 @@ Program::ExecuteAndWait(const Path& path,
PROCESS_INFORMATION pi;
memset(&pi, 0, sizeof(pi));
- LPVOID lpEnvironment = envp;
if (!CreateProcess(path.c_str(), command, NULL, NULL, FALSE, 0,
- lpEnvironment, NULL, &si, &pi))
+ envp, NULL, &si, &pi))
{
ThrowError(std::string("Couldn't execute program '") +
path.toString() + "'");