zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit d99f0a2b8fc3c8617e95396d3c308fccf8beceb6 (tree)
parent 1537d4701effe780d68444dec55073901001576a
Author: daurnimator <quae@daurnimator.com>
Date:   Tue, 19 Nov 2019 16:58:48 +1100

std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union

Diffstat:
Mlib/std/os/windows/bits.zig | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig @@ -236,7 +236,11 @@ pub const FILE_NAME_INFORMATION = extern struct { }; pub const IO_STATUS_BLOCK = extern struct { - Status: usize, + // "DUMMYUNIONNAME" expands to "u" + u: extern union { + Status: NTSTATUS, + Pointer: ?*c_void, + }, Information: ULONG_PTR, };