diff --git a/src/windows/windows_sys.rs b/src/windows/windows_sys.rs index c5d2113a8..f59f5e5c6 100644 --- a/src/windows/windows_sys.rs +++ b/src/windows/windows_sys.rs @@ -6,7 +6,7 @@ // cd generate-windows-sys/ // cargo run // ``` -// Bindings generated by `windows-bindgen` 0.60.0 +// Bindings generated by `windows-bindgen` 0.61.0 #![allow( non_snake_case, @@ -44,7 +44,7 @@ pub const ERROR_SUCCESS: WIN32_ERROR = 0u32; pub const FALSE: BOOL = 0i32; pub type FARPROC = Option isize>; #[repr(C)] -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Default)] pub struct FILETIME { pub dwLowDateTime: u32, pub dwHighDateTime: u32, @@ -107,8 +107,13 @@ pub struct SAFEARRAY { pub pvData: *mut core::ffi::c_void, pub rgsabound: [SAFEARRAYBOUND; 1], } +impl Default for SAFEARRAY { + fn default() -> Self { + unsafe { core::mem::zeroed() } + } +} #[repr(C)] -#[derive(Clone, Copy)] +#[derive(Clone, Copy, Default)] pub struct SAFEARRAYBOUND { pub cElements: u32, pub lLbound: i32,