From a8b0e44e86c944350b2064f5c0f297346bf0c32c Mon Sep 17 00:00:00 2001 From: Fulgen301 Date: Sun, 3 Sep 2023 17:04:42 +0200 Subject: [PATCH] Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of --- library/std/src/sys/windows/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/windows/process.rs b/library/std/src/sys/windows/process.rs index 6f46da1748a70..84a75d213052f 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:: as c::DWORD; + si.cb = mem::size_of::() as c::DWORD; si_ptr = &mut si as *mut _ as _; }