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:
Matthias Krüger 2023-09-03 21:38:43 +02:00 committed by GitHub
commit 487fe2e5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 _;
}