mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #115512 - Fulgen301:startupinfow, r=ChrisDenton
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of Fixes #115511.
This commit is contained in:
commit
487fe2e5ad
@ -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