Skip to content

Commit a8b0e44

Browse files
authored
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of
1 parent 49523e3 commit a8b0e44

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)