Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/foundation/compat_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ static FILE *cbm_popen_isolated(const char *cmd, const char **stage, DWORD *gle)
*stage = "cmdline";
*gle = ERROR_NOT_ENOUGH_MEMORY;
} else {
created = CreateProcessW(app, wcmdline, NULL, NULL, TRUE, EXTENDED_STARTUPINFO_PRESENT,
NULL, NULL, &si.StartupInfo, &pi);
created = CreateProcessW(app, wcmdline, NULL, NULL, TRUE,
EXTENDED_STARTUPINFO_PRESENT | CREATE_NO_WINDOW, NULL, NULL,
&si.StartupInfo, &pi);
if (!created) {
*stage = "spawn";
*gle = GetLastError();
Expand Down
3 changes: 2 additions & 1 deletion src/foundation/subprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ static int cbm_subprocess_spawn_win(cbm_subprocess_t *process) {

PROCESS_INFORMATION child;
ZeroMemory(&child, sizeof(child));
DWORD flags = EXTENDED_STARTUPINFO_PRESENT | CREATE_SUSPENDED | CREATE_NEW_PROCESS_GROUP;
DWORD flags = EXTENDED_STARTUPINFO_PRESENT | CREATE_SUSPENDED | CREATE_NEW_PROCESS_GROUP |
CREATE_NO_WINDOW;
BOOL created = CreateProcessW(wbin, wcmdline, NULL, NULL, TRUE, flags, NULL, NULL,
&startup.StartupInfo, &child);
cbm_win_close_spawn_handles(nul, log, attrs, attrs_init);
Expand Down
Loading