about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFulgen301 <Fulgen301@users.noreply.github.com>2023-09-03 17:04:42 +0200
committerGitHub <noreply@github.com>2023-09-03 17:04:42 +0200
commita8b0e44e86c944350b2064f5c0f297346bf0c32c (patch)
tree1f6ebce969dccb3c7ed31c21e3d47927de6cfd61
parent49523e336055d4b6f229655ffeb8535d63e46388 (diff)
downloadrust-a8b0e44e86c944350b2064f5c0f297346bf0c32c.tar.gz
rust-a8b0e44e86c944350b2064f5c0f297346bf0c32c.zip
Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of
-rw-r--r--library/std/src/sys/windows/process.rs2
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 _;
         }