mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Fix opening NUL device on Windows
This commit is contained in:
parent
4d9eff4bdb
commit
f6ae2505d9
@ -484,7 +484,7 @@ pub const ChildProcess = struct {
|
||||
const nul_handle = if (any_ignore)
|
||||
windows.OpenFile(&[_]u16{ 'N', 'U', 'L' }, .{
|
||||
.dir = std.fs.cwd().fd,
|
||||
.access_mask = windows.GENERIC_READ,
|
||||
.access_mask = windows.GENERIC_READ | windows.SYNCHRONIZE,
|
||||
.share_access = windows.FILE_SHARE_READ,
|
||||
.creation = windows.OPEN_EXISTING,
|
||||
.io_mode = .blocking,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user