authorgravatar for aleksey.kladov@gmail.comAlex Kladov <aleksey.kladov@gmail.com> 2024-02-17 22:31:48+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-17 21:49:00-08:00
logab6317d32bdc004e50cc4750ba9a89c9d81e05df
treeee7b46c42cc57620f258ab820e5a6e2be666d8d7
parentf3bd177723293d11680f3cccaa2f5798a5625667

std: fix copy-paste typo in spawnWindows


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

lib/std/child_process.zig+2-2
......@@ -720,7 +720,7 @@ pub const ChildProcess = struct {
720720 g_hChildStd_OUT_Wr = null;
721721 },
722722 }
723 errdefer if (self.stdin_behavior == StdIo.Pipe) {
723 errdefer if (self.stdout_behavior == StdIo.Pipe) {
724724 windowsDestroyPipe(g_hChildStd_OUT_Rd, g_hChildStd_OUT_Wr);
725725 };
726726
......@@ -740,7 +740,7 @@ pub const ChildProcess = struct {
740740 g_hChildStd_ERR_Wr = null;
741741 },
742742 }
743 errdefer if (self.stdin_behavior == StdIo.Pipe) {
743 errdefer if (self.stderr_behavior == StdIo.Pipe) {
744744 windowsDestroyPipe(g_hChildStd_ERR_Rd, g_hChildStd_ERR_Wr);
745745 };
746746