diff options
| author | daurnimator <quae@daurnimator.com> | 2019-11-19 16:58:48 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2019-11-27 13:01:10 +1100 |
| commit | d99f0a2b8fc3c8617e95396d3c308fccf8beceb6 (patch) | |
| tree | b02ac790962dd0caf703c91ac37da20379d0c24a /lib | |
| parent | 1537d4701effe780d68444dec55073901001576a (diff) | |
| download | zig-d99f0a2b8fc3c8617e95396d3c308fccf8beceb6.tar.gz zig-d99f0a2b8fc3c8617e95396d3c308fccf8beceb6.zip | |
std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/os/windows/bits.zig | 6 |
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, }; |
