diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-08 02:48:42 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-08 02:48:42 +0000 |
commit | edb9d6bc720bb2328bb49f4400bf8d6b3b04ef50 (patch) | |
tree | c8211e3f0e34b3d835c9803a832e8dcc1670d971 /lib/System/Win32/Program.inc | |
parent | 4607b5487775ccc236270bc6a058590141a28289 (diff) |
Fix VC++ breakage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.inc')
-rw-r--r-- | lib/System/Win32/Program.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 6519ca5069..95f56b231f 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -31,9 +31,9 @@ Program::FindProgramByName(const std::string& progName) { if (progName.length() == 0) // no program return Path(); Path temp; - if (!temp.setFile(progName)) // invalid name + if (!temp.set(progName)) // invalid name return Path(); - if (temp.executable()) // already executable as is + if (temp.canExecute()) // already executable as is return temp; // At this point, the file name is valid and its not executable. @@ -101,7 +101,7 @@ Program::ExecuteAndWait(const Path& path, const char** envp, const Path** redirects, unsigned secondsToWait) { - if (!path.executable()) + if (!path.canExecute()) throw path.toString() + " is not executable"; // Windows wants a command line, not an array of args, to pass to the new |