diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-02 11:38:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-02 11:38:16 -0800 |
commit | 04b2a5eedac7ac0fecdafce1bda1028ee55e2aac (patch) | |
tree | 2214e3c1b1226684d783fd1182c5fdd86df72448 /PC | |
parent | 56f84117a766d21045349f0217ce740831aef0dc (diff) | |
download | cpython-git-04b2a5eedac7ac0fecdafce1bda1028ee55e2aac.tar.gz |
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>
Diffstat (limited to 'PC')
-rw-r--r-- | PC/launcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/launcher.c b/PC/launcher.c index a78620a892..a4e678115f 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"); |