Command::spawn: Fix STARTUPINFOW.cb being initialized with the address of size_of

This commit is contained in:
Fulgen301 2023-09-03 17:04:42 +02:00 committed by GitHub
parent 49523e3360
commit a8b0e44e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 _;
}