summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorShiva Saxena <shivasaxena911@gmail.com>2019-02-02 19:21:04 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-02 19:21:04 (GMT)
commitcb0904762681031edc50f9d7d7ef48cffcf96d9a (patch)
treedf4e81c7ca9d0b6346a91751a48cffb482d092b2 /PC
parentd08ea70464cb8a1f86134dcb4a5c2eac1a02bf1a (diff)
downloadcpython-cb0904762681031edc50f9d7d7ef48cffcf96d9a.zip
cpython-cb0904762681031edc50f9d7d7ef48cffcf96d9a.tar.gz
cpython-cb0904762681031edc50f9d7d7ef48cffcf96d9a.tar.bz2
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
https://bugs.python.org/issue32560
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher.c2
1 files changed, 1 insertions, 1 deletions
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 @@ run_child(wchar_t * cmdline)
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");