File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,9 @@ fn _winapi_CreateProcess(
130
130
args : CreateProcessArgs ,
131
131
vm : & VirtualMachine ,
132
132
) -> PyResult < ( usize , usize , u32 , u32 ) > {
133
- let mut si: winbase:: STARTUPINFOEXW = unsafe { std:: mem:: zeroed ( ) } ;
134
- si. StartupInfo . cb = std:: mem:: size_of_val ( & si) as _ ;
133
+ use winbase:: STARTUPINFOEXW ;
134
+ let mut si: STARTUPINFOEXW = unsafe { std:: mem:: zeroed ( ) } ;
135
+ si. StartupInfo . cb = std:: mem:: size_of :: < STARTUPINFOEXW > ( ) as _ ;
135
136
136
137
macro_rules! si_attr {
137
138
( $attr: ident, $t: ty) => { {
@@ -206,7 +207,7 @@ fn _winapi_CreateProcess(
206
207
| winbase:: CREATE_UNICODE_ENVIRONMENT ,
207
208
env as _ ,
208
209
current_dir,
209
- & mut si as * mut winbase :: STARTUPINFOEXW as _ ,
210
+ & mut si as * mut STARTUPINFOEXW as _ ,
210
211
& mut procinfo,
211
212
)
212
213
} ;
You can’t perform that action at this time.
0 commit comments