浏览代码

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 周之前
父节点
当前提交
9a4faf9ab9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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) {