| ... | ... | @@ -550,7 +550,7 @@ pub const ChildProcess = struct { |
| 550 | 550 | retry: while (it.next()) |search_path| { |
| 551 | 551 | var ext_it = mem.tokenize(PATHEXT, ";"); |
| 552 | 552 | while (ext_it.next()) |app_ext| { |
| 553 | | const app_basename = try mem.concat(self.allocator, u8, [_][]const u8{app_name[0..app_name.len - 1], app_ext}); |
| 553 | const app_basename = try mem.concat(self.allocator, u8, [_][]const u8{ app_name[0 .. app_name.len - 1], app_ext }); |
| 554 | 554 | defer self.allocator.free(app_basename); |
| 555 | 555 | |
| 556 | 556 | const joined_path = try fs.path.join(self.allocator, [_][]const u8{ search_path, app_basename }); |
| ... | ... | @@ -562,9 +562,9 @@ pub const ChildProcess = struct { |
| 562 | 562 | if (windowsCreateProcess(joined_path_w.ptr, cmd_line_w.ptr, envp_ptr, cwd_w_ptr, &siStartInfo, &piProcInfo)) |_| { |
| 563 | 563 | break :retry; |
| 564 | 564 | } else |err| switch (err) { |
| 565 | | error.FileNotFound => { continue; }, |
| 566 | | error.AccessDenied => { continue; }, |
| 567 | | else => { return err; }, |
| 565 | error.FileNotFound => continue, |
| 566 | error.AccessDenied => continue, |
| 567 | else => return err, |
| 568 | 568 | } |
| 569 | 569 | } |
| 570 | 570 | } else { |