| ... | @@ -997,6 +997,9 @@ pub const ChildProcess = struct { | ... | @@ -997,6 +997,9 @@ pub const ChildProcess = struct { |
| 997 | } | 997 | } |
| 998 | } | 998 | } |
| 999 | | 999 | |
| | 1000 | // No need to search the PATH if the app path is absolute |
| | 1001 | if (fs.path.isAbsoluteWindowsWTF16(app_path_w)) return no_path_err; |
| | 1002 | |
| 1000 | // app_path_w has the cwd prepended to it if cwd is non-null, so when | 1003 | // app_path_w has the cwd prepended to it if cwd is non-null, so when |
| 1001 | // searching the PATH we should make sure we use the app_name verbatim. | 1004 | // searching the PATH we should make sure we use the app_name verbatim. |
| 1002 | var app_name_w_needs_free = false; | 1005 | var app_name_w_needs_free = false; |