Skip to content

Commit 49d1d10

Browse files
committed
Fix std handle forwarding
1 parent e9dd3d0 commit 49d1d10

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

GVFS/GitHooksLoader/GitHooksLoader.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ int ExecuteHook(const std::wstring &applicationName, wchar_t *hookName, int argc
112112
PROCESS_INFORMATION pi;
113113
ZeroMemory(&si, sizeof(si));
114114
si.cb = sizeof(si);
115-
si.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
116-
si.hStdError = GetStdHandle(STD_ERROR_HANDLE);
117-
si.dwFlags = STARTF_USESTDHANDLES;
118115

119116
ZeroMemory(&pi, sizeof(pi));
120117

@@ -135,7 +132,7 @@ int ExecuteHook(const std::wstring &applicationName, wchar_t *hookName, int argc
135132
NULL, // Process handle not inheritable
136133
NULL, // Thread handle not inheritable
137134
TRUE, // Set handle inheritance to TRUE
138-
CREATE_NO_WINDOW, // Process creation flags
135+
NULL, // Process creation flags
139136
NULL, // Use parent's environment block
140137
NULL, // Use parent's starting directory
141138
&si, // Pointer to STARTUPINFO structure

0 commit comments

Comments
 (0)