diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-03 21:38:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-03 21:38:43 +0200 |
| commit | 487fe2e5ad440d0b304d12bf6968b701932df695 (patch) | |
| tree | 44750da01a7be91f072df21a69c7d45dbcdd2018 | |
| parent | 33e2e715029b376253a20f9c2aa1b755f53b872e (diff) | |
| parent | a8b0e44e86c944350b2064f5c0f297346bf0c32c (diff) | |
| download | rust-487fe2e5ad440d0b304d12bf6968b701932df695.tar.gz rust-487fe2e5ad440d0b304d12bf6968b701932df695.zip | |
Rollup merge of #115512 - Fulgen301:startupinfow, r=ChrisDenton
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of Fixes #115511.
| -rw-r--r-- | library/std/src/sys/windows/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/process.rs b/library/std/src/sys/windows/process.rs index 6f46da1748a..84a75d21305 100644 --- a/library/std/src/sys/windows/process.rs +++ b/library/std/src/sys/windows/process.rs @@ -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 _; } |
