aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2019-11-19 16:58:48 +1100
committerdaurnimator <quae@daurnimator.com>2019-11-27 13:01:10 +1100
commitd99f0a2b8fc3c8617e95396d3c308fccf8beceb6 (patch)
treeb02ac790962dd0caf703c91ac37da20379d0c24a /lib/std
parent1537d4701effe780d68444dec55073901001576a (diff)
downloadzig-d99f0a2b8fc3c8617e95396d3c308fccf8beceb6.tar.gz
zig-d99f0a2b8fc3c8617e95396d3c308fccf8beceb6.zip
std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/os/windows/bits.zig6
1 files changed, 5 insertions, 1 deletions
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,
};