From 806c7856f21fce09f20ae31c6c1b5cb01dd69f1a Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 30 Oct 2015 11:39:25 +0100 Subject: [PATCH] Change 'which' so that it processes relative paths like wpd/wpd2html.exe --- src/windows/execmd_w.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/execmd_w.cpp b/src/windows/execmd_w.cpp index b8319283..fc8658c5 100644 --- a/src/windows/execmd_w.cpp +++ b/src/windows/execmd_w.cpp @@ -401,7 +401,7 @@ bool ExecCmd::which(const string& cmd, string& exe, const char* path) pep = &s_pathelts; } - if (cmd.find_first_of("/\\") != string::npos) { + if (path_isabsolute(cmd)) { if (is_exe_base(cmd)) { exe = cmd; return true;