mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of
This commit is contained in:
parent
49523e3360
commit
a8b0e44e86
@ -352,7 +352,7 @@ impl Command {
|
||||
};
|
||||
si_ptr = &mut si_ex as *mut _ as _;
|
||||
} else {
|
||||
si.cb = mem::size_of::<c::STARTUPINFOW> as c::DWORD;
|
||||
si.cb = mem::size_of::<c::STARTUPINFOW>() as c::DWORD;
|
||||
si_ptr = &mut si as *mut _ as _;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user