| ... | ... | @@ -485,8 +485,8 @@ pub const ChildProcess = struct { |
| 485 | 485 | const any_ignore = (self.stdin_behavior == StdIo.Ignore or self.stdout_behavior == StdIo.Ignore or self.stderr_behavior == StdIo.Ignore); |
| 486 | 486 | |
| 487 | 487 | const nul_handle = if (any_ignore) |
| 488 | | windows.OpenFile(&[_]u16{ 'N', 'U', 'L' }, .{ |
| 489 | | .dir = std.fs.cwd().fd, |
| 488 | // "\Device\Null" or "\??\NUL" |
| 489 | windows.OpenFile(&[_]u16{ '\\', 'D', 'e', 'v', 'i', 'c', 'e', '\\', 'N', 'u', 'l', 'l' }, .{ |
| 490 | 490 | .access_mask = windows.GENERIC_READ | windows.SYNCHRONIZE, |
| 491 | 491 | .share_access = windows.FILE_SHARE_READ, |
| 492 | 492 | .creation = windows.OPEN_EXISTING, |