Răsfoiți Sursa

Add the CREATE_NO_WINDOW flag for background processes

Fixes https://github.com/libsdl-org/SDL/issues/12097

(cherry picked from commit c025fdbb7c5a5882ebcb0fc54ead13c9d6f9de39)
Sam Lantinga 1 săptămână în urmă
părinte
comite
9a4faf9ab9
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      src/process/windows/SDL_windowsprocess.c

+ 1 - 0
src/process/windows/SDL_windowsprocess.c

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