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 | 2b60d39499d9ac3e5078f4a134c3fd80b46e2b94 (patch) | |
tree | 08e629779ada65207416df8c7d40ee421ef8d6e9 /llvm/lib/System/Win32/Program.cpp | |
parent | eedafda7bb5fdb6b77aab15482c9fc6c3f1a59a9 (diff) | |
download | bcm5719-llvm-2b60d39499d9ac3e5078f4a134c3fd80b46e2b94.tar.gz bcm5719-llvm-2b60d39499d9ac3e5078f4a134c3fd80b46e2b94.zip |
Implement Win32 Path::getStatusInfo(), TimeValue::toString()
llvm-svn: 18930
Diffstat (limited to 'llvm/lib/System/Win32/Program.cpp')
-rw-r--r-- | llvm/lib/System/Win32/Program.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/System/Win32/Program.cpp b/llvm/lib/System/Win32/Program.cpp index 4aff5e969c8..92b024348c5 100644 --- a/llvm/lib/System/Win32/Program.cpp +++ b/llvm/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() + "'"); |