diff options
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 |