Skip to content

Commit b8c89c5

Browse files
committed
std: IO_STATUS_BLOCK's status member is an NTSTATUS; add union
1 parent d109597 commit b8c89c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/std/os/windows/bits.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ pub const FILE_NAME_INFORMATION = extern struct {
236236
};
237237

238238
pub const IO_STATUS_BLOCK = extern struct {
239-
Status: usize,
239+
// "DUMMYUNIONNAME" expands to "u"
240+
u: extern union {
241+
Status: NTSTATUS,
242+
Pointer: ?*c_void,
243+
},
240244
Information: ULONG_PTR,
241245
};
242246

0 commit comments

Comments
 (0)