mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std: fix copy-paste typo in spawnWindows
This commit is contained in:
parent
f3bd177723
commit
ab6317d32b
@ -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);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user