Skip to content

Commit

Permalink
Rollup merge of rust-lang#115512 - Fulgen301:startupinfow, r=ChrisDenton
Browse files Browse the repository at this point in the history
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of

Fixes rust-lang#115511.
  • Loading branch information
Dylan-DPC authored Sep 3, 2023
2 parents 9287038 + a8b0e44 commit 71bc282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _;
}

Expand Down

0 comments on commit 71bc282

Please sign in to comment.