From 0f59266ba3d398a1de342c438ad29f2d354ed94e Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 19 Mar 2025 09:16:30 +0000 Subject: [PATCH] Regenerate windows sys bindings --- src/windows/windows_sys.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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,