Add the CREATE_NO_WINDOW flag for background processes

Fixes https://github.com/libsdl-org/SDL/issues/12097
This commit is contained in:
Sam Lantinga 2025-04-11 15:32:32 -07:00
parent 8a57c83ff9
commit c025fdbb7c
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ bool SDL_SYS_CreateProcessWithProperties(SDL_Process *process, SDL_PropertiesID
if (stderr_option == SDL_PROCESS_STDIO_INHERITED) { if (stderr_option == SDL_PROCESS_STDIO_INHERITED) {
stderr_option = SDL_PROCESS_STDIO_NULL; stderr_option = SDL_PROCESS_STDIO_NULL;
} }
creation_flags |= CREATE_NO_WINDOW;
} }
switch (stdin_option) { switch (stdin_option) {