We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1285a0e commit 260d6f2Copy full SHA for 260d6f2
vm/src/stdlib/winapi.rs
@@ -130,8 +130,9 @@ fn _winapi_CreateProcess(
130
args: CreateProcessArgs,
131
vm: &VirtualMachine,
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 _;
+ use winbase::STARTUPINFOEXW;
+ let mut si: STARTUPINFOEXW = unsafe { std::mem::zeroed() };
135
+ si.StartupInfo.cb = 84; // std::mem::size_of::<STARTUPINFOEXW>() as _;
136
137
macro_rules! si_attr {
138
($attr:ident, $t:ty) => {{
@@ -206,7 +207,7 @@ fn _winapi_CreateProcess(
206
207
| winbase::CREATE_UNICODE_ENVIRONMENT,
208
env as _,
209
current_dir,
- &mut si as *mut winbase::STARTUPINFOEXW as _,
210
+ &mut si as *mut STARTUPINFOEXW as _,
211
&mut procinfo,
212
)
213
};
0 commit comments