File tree 1 file changed +8
-3
lines changed 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6
6
// cd generate-windows-sys/
7
7
// cargo run
8
8
// ```
9
- // Bindings generated by `windows-bindgen` 0.60 .0
9
+ // Bindings generated by `windows-bindgen` 0.61 .0
10
10
11
11
#![ allow(
12
12
non_snake_case,
@@ -44,7 +44,7 @@ pub const ERROR_SUCCESS: WIN32_ERROR = 0u32;
44
44
pub const FALSE : BOOL = 0i32 ;
45
45
pub type FARPROC = Option < unsafe extern "system" fn ( ) -> isize > ;
46
46
#[ repr( C ) ]
47
- #[ derive( Clone , Copy ) ]
47
+ #[ derive( Clone , Copy , Default ) ]
48
48
pub struct FILETIME {
49
49
pub dwLowDateTime : u32 ,
50
50
pub dwHighDateTime : u32 ,
@@ -107,8 +107,13 @@ pub struct SAFEARRAY {
107
107
pub pvData : * mut core:: ffi:: c_void ,
108
108
pub rgsabound : [ SAFEARRAYBOUND ; 1 ] ,
109
109
}
110
+ impl Default for SAFEARRAY {
111
+ fn default ( ) -> Self {
112
+ unsafe { core:: mem:: zeroed ( ) }
113
+ }
114
+ }
110
115
#[ repr( C ) ]
111
- #[ derive( Clone , Copy ) ]
116
+ #[ derive( Clone , Copy , Default ) ]
112
117
pub struct SAFEARRAYBOUND {
113
118
pub cElements : u32 ,
114
119
pub lLbound : i32 ,
You can’t perform that action at this time.
0 commit comments