bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
https://bugs.python.org/issue32560
(cherry picked from commit cb0904762681031edc50f9d7d7ef48cffcf96d9a)
Co-authored-by: Shiva Saxena <shivasaxena911@gmail.com>
diff --git a/PC/launcher.c b/PC/launcher.c
index a78620a..a4e6781 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -666,7 +666,7 @@
if (!ok)
error(RC_CREATE_PROCESS, L"Job information setting failed");
memset(&si, 0, sizeof(si));
- si.cb = sizeof(si);
+ GetStartupInfoW(&si);
ok = safe_duplicate_handle(GetStdHandle(STD_INPUT_HANDLE), &si.hStdInput);
if (!ok)
error(RC_NO_STD_HANDLES, L"stdin duplication failed");