mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
spawnWindows: Don't search PATH if app path is absolute
This commit is contained in:
parent
d3242408d4
commit
9e8ac2b666
@ -997,6 +997,9 @@ pub const ChildProcess = struct {
|
||||
}
|
||||
}
|
||||
|
||||
// No need to search the PATH if the app path is absolute
|
||||
if (fs.path.isAbsoluteWindowsWTF16(app_path_w)) return no_path_err;
|
||||
|
||||
// app_path_w has the cwd prepended to it if cwd is non-null, so when
|
||||
// searching the PATH we should make sure we use the app_name verbatim.
|
||||
var app_name_w_needs_free = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user