diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-14 05:26:43 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-14 05:26:43 +0000 |
commit | 626e38e4813c357bd7161782286317ee42357313 (patch) | |
tree | 78122159c94261ffe847983610c084e729f98773 /lib/System/Win32/Program.cpp | |
parent | 6da1e0d50fabbe3ab9e68d9640cc1ed2fd44ae6e (diff) |
Implement Win32 Path::getStatusInfo(), TimeValue::toString()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.cpp')
-rw-r--r-- | lib/System/Win32/Program.cpp | 5 |
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() + "'"); |