From d99f0a2b8fc3c8617e95396d3c308fccf8beceb6 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 19 Nov 2019 16:58:48 +1100 Subject: [PATCH] std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union --- lib/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 index 80b0545dc4..eefcc72ecc 100644 --- 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, };