authorgravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-02-05 23:13:17+01:00
committergravatar for sahnvour@pm.meSahnvour <sahnvour@pm.me> 2019-02-05 23:13:17+01:00
log6860db66fed86de6cea57134c12374905abac8d8
treeef5b134cb715a0a110d6c0365bb683b66fa704fd
parenta9faace8b4c9b2bef9425c4cdb136ff8fec056b8

Typo: use the joined path to try executables available from PATH.


1 files changed, 1 insertions(+), 1 deletions(-)

std/os/child_process.zig+1-1
...@@ -600,7 +600,7 @@ pub const ChildProcess = struct {...@@ -600,7 +600,7 @@ pub const ChildProcess = struct {
600 const joined_path = try os.path.join(self.allocator, search_path, app_name);600 const joined_path = try os.path.join(self.allocator, search_path, app_name);
601 defer self.allocator.free(joined_path);601 defer self.allocator.free(joined_path);
602602
603 const joined_path_w = try unicode.utf8ToUtf16LeWithNull(self.allocator, app_name);603 const joined_path_w = try unicode.utf8ToUtf16LeWithNull(self.allocator, joined_path);
604 defer self.allocator.free(joined_path_w);604 defer self.allocator.free(joined_path_w);
605605
606 if (windowsCreateProcess(joined_path_w.ptr, cmd_line_w.ptr, envp_ptr, cwd_w_ptr, &siStartInfo, &piProcInfo)) |_| {606 if (windowsCreateProcess(joined_path_w.ptr, cmd_line_w.ptr, envp_ptr, cwd_w_ptr, &siStartInfo, &piProcInfo)) |_| {