Skip to content

Commit 487fe2e

Browse files
authored
Rollup merge of #115512 - Fulgen301:startupinfow, r=ChrisDenton
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of Fixes #115511.
2 parents 33e2e71 + a8b0e44 commit 487fe2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl Command {
352352
};
353353
si_ptr = &mut si_ex as *mut _ as _;
354354
} else {
355-
si.cb = mem::size_of::<c::STARTUPINFOW> as c::DWORD;
355+
si.cb = mem::size_of::<c::STARTUPINFOW>() as c::DWORD;
356356
si_ptr = &mut si as *mut _ as _;
357357
}
358358

0 commit comments

Comments
 (0)