Skip to content

Commit 3644e85

Browse files
committed
fix regressions on windows
1 parent 37caa56 commit 3644e85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/child_process.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ pub const ChildProcess = struct {
571571
// to match posix semantics
572572
const app_name = x: {
573573
if (self.cwd) |cwd| {
574-
const resolved = try fs.path.resolve(self.allocator, [_][]const u8{ cwd, self.argv[0] });
574+
const resolved = try fs.path.resolve(self.allocator, &[_][]const u8{ cwd, self.argv[0] });
575575
defer self.allocator.free(resolved);
576576
break :x try cstr.addNullByte(self.allocator, resolved);
577577
} else {
@@ -613,10 +613,10 @@ pub const ChildProcess = struct {
613613
retry: while (it.next()) |search_path| {
614614
var ext_it = mem.tokenize(PATHEXT, ";");
615615
while (ext_it.next()) |app_ext| {
616-
const app_basename = try mem.concat(self.allocator, u8, [_][]const u8{ app_name[0 .. app_name.len - 1], app_ext });
616+
const app_basename = try mem.concat(self.allocator, u8, &[_][]const u8{ app_name[0 .. app_name.len - 1], app_ext });
617617
defer self.allocator.free(app_basename);
618618

619-
const joined_path = try fs.path.join(self.allocator, [_][]const u8{ search_path, app_basename });
619+
const joined_path = try fs.path.join(self.allocator, &[_][]const u8{ search_path, app_basename });
620620
defer self.allocator.free(joined_path);
621621

622622
const joined_path_w = try unicode.utf8ToUtf16LeWithNull(self.allocator, joined_path);

0 commit comments

Comments
 (0)