File tree 1 file changed +11
-5
lines changed
library/std/src/sys/windows
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -316,15 +316,21 @@ impl Default for OBJECT_ATTRIBUTES {
316
316
}
317
317
}
318
318
#[ repr( C ) ]
319
- pub struct IO_STATUS_BLOCK {
320
- pub Pointer : * mut c_void ,
321
- pub Information : usize ,
319
+ union IO_STATUS_BLOCK_union {
320
+ Status : NTSTATUS ,
321
+ Pointer : * mut c_void ,
322
322
}
323
- impl Default for IO_STATUS_BLOCK {
323
+ impl Default for IO_STATUS_BLOCK_union {
324
324
fn default ( ) -> Self {
325
- Self { Pointer : ptr:: null_mut ( ) , Information : 0 }
325
+ Self { Pointer : ptr:: null_mut ( ) }
326
326
}
327
327
}
328
+ #[ repr( C ) ]
329
+ #[ derive( Default ) ]
330
+ pub struct IO_STATUS_BLOCK {
331
+ u : IO_STATUS_BLOCK_union ,
332
+ pub Information : usize ,
333
+ }
328
334
329
335
pub type LPOVERLAPPED_COMPLETION_ROUTINE = unsafe extern "system" fn (
330
336
dwErrorCode : DWORD ,
You can’t perform that action at this time.
0 commit comments