This commit is contained in:
Alexander Aleksandrovič Klimov 2026-04-07 08:11:43 +00:00 committed by GitHub
commit 79ae7ac57b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -920,7 +920,7 @@ void Process::Run(const std::function<void(const ProcessResult&)>& callback)
envp[offset] = '\0';
if (!CreateProcess(nullptr, args, nullptr, nullptr, TRUE,
0 /*EXTENDED_STARTUPINFO_PRESENT*/, envp, nullptr, &si.StartupInfo, &pi)) {
BELOW_NORMAL_PRIORITY_CLASS, envp, nullptr, &si.StartupInfo, &pi)) {
DWORD error = GetLastError();
CloseHandle(outWritePipe);
CloseHandle(outWritePipeDup);