Skip to content

Commit a140cc7

Browse files
Regenerate windows sys bindings (#1437)
1 parent 55051eb commit a140cc7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/windows/windows_sys.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// cd generate-windows-sys/
77
// cargo run
88
// ```
9-
// Bindings generated by `windows-bindgen` 0.60.0
9+
// Bindings generated by `windows-bindgen` 0.61.0
1010

1111
#![allow(
1212
non_snake_case,
@@ -44,7 +44,7 @@ pub const ERROR_SUCCESS: WIN32_ERROR = 0u32;
4444
pub const FALSE: BOOL = 0i32;
4545
pub type FARPROC = Option<unsafe extern "system" fn() -> isize>;
4646
#[repr(C)]
47-
#[derive(Clone, Copy)]
47+
#[derive(Clone, Copy, Default)]
4848
pub struct FILETIME {
4949
pub dwLowDateTime: u32,
5050
pub dwHighDateTime: u32,
@@ -107,8 +107,13 @@ pub struct SAFEARRAY {
107107
pub pvData: *mut core::ffi::c_void,
108108
pub rgsabound: [SAFEARRAYBOUND; 1],
109109
}
110+
impl Default for SAFEARRAY {
111+
fn default() -> Self {
112+
unsafe { core::mem::zeroed() }
113+
}
114+
}
110115
#[repr(C)]
111-
#[derive(Clone, Copy)]
116+
#[derive(Clone, Copy, Default)]
112117
pub struct SAFEARRAYBOUND {
113118
pub cElements: u32,
114119
pub lLbound: i32,

0 commit comments

Comments
 (0)