Skip to content

Commit

Permalink
Command::spawn: Fix STARTUPINFOW.cb being initialized with the addres…
Browse files Browse the repository at this point in the history
…s of size_of
  • Loading branch information
Fulgen301 authored Sep 3, 2023
1 parent 49523e3 commit a8b0e44
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 a8b0e44

Please sign in to comment.