From ab6317d32bdc004e50cc4750ba9a89c9d81e05df Mon Sep 17 00:00:00 2001 From: Alex Kladov Date: Sat, 17 Feb 2024 22:31:48 +0000 Subject: [PATCH] std: fix copy-paste typo in spawnWindows --- lib/std/child_process.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index 93adba9a82..4e8b2eb65c 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -720,7 +720,7 @@ pub const ChildProcess = struct { g_hChildStd_OUT_Wr = null; }, } - errdefer if (self.stdin_behavior == StdIo.Pipe) { + errdefer if (self.stdout_behavior == StdIo.Pipe) { windowsDestroyPipe(g_hChildStd_OUT_Rd, g_hChildStd_OUT_Wr); }; @@ -740,7 +740,7 @@ pub const ChildProcess = struct { g_hChildStd_ERR_Wr = null; }, } - errdefer if (self.stdin_behavior == StdIo.Pipe) { + errdefer if (self.stderr_behavior == StdIo.Pipe) { windowsDestroyPipe(g_hChildStd_ERR_Rd, g_hChildStd_ERR_Wr); };