From 2b60d39499d9ac3e5078f4a134c3fd80b46e2b94 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Tue, 14 Dec 2004 05:26:43 +0000 Subject: Implement Win32 Path::getStatusInfo(), TimeValue::toString() llvm-svn: 18930 --- llvm/lib/System/Win32/Program.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/System/Win32/Program.cpp') 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& 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() + "'"); -- cgit v1.2.3