Commit d99f0a2b8f

daurnimator <quae@daurnimator.com>
2019-11-19 06:58:48
std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union
1 parent 1537d47
Changed files (1)
lib
std
os
windows
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,
 };