Skip to content

Commit eff7e02

Browse files
authored
Avoid overwriting inherited startup flags when launching Python. (#151)
Fixes #150
1 parent 9d17b76 commit eff7e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pymanager/_launch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ launch(const wchar_t *executable, const wchar_t *insert_args, int skip_argc, DWO
122122
goto exit;
123123
}
124124

125-
si.dwFlags = STARTF_USESTDHANDLES;
125+
si.dwFlags |= STARTF_USESTDHANDLES;
126126
if (!CreateProcessW(executable, newCmdLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) {
127127
lastError = GetLastError();
128128
goto exit;

0 commit comments

Comments
 (0)