| ... | @@ -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); |
| 602 | | 602 | |
| 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); |
| 605 | | 605 | |
| 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)) |_| { |
| ... | @@ -610,6 +610,9 @@ pub const ChildProcess = struct { | ... | @@ -610,6 +610,9 @@ pub const ChildProcess = struct { |
| 610 | } else { | 610 | } else { |
| 611 | return err; | 611 | return err; |
| 612 | } | 612 | } |
| | 613 | } else { |
| | 614 | // Every other error would have been returned earlier. |
| | 615 | return error.FileNotFound; |
| 613 | } | 616 | } |
| 614 | }; | 617 | }; |
| 615 | | 618 | |