]> granicus.if.org Git - imagemagick/commitdiff
The command window created by NTSystemCommand will be hidden.
authordirk <dirk@git.imagemagick.org>
Sat, 30 Nov 2013 18:59:23 +0000 (18:59 +0000)
committerdirk <dirk@git.imagemagick.org>
Sat, 30 Nov 2013 18:59:23 +0000 (18:59 +0000)
MagickCore/nt-base.c

index 858dd968aa936ca10c1f0b83c36c9ad943eac9f2..31be94ef1242dbd45951cc656707fa659180c53e 100644 (file)
@@ -2077,9 +2077,9 @@ MagickPrivate int NTSystemCommand(const char *command)
   if (background_process != MagickFalse)
     local_command[strlen(command)-1]='\0';
   if (command[strlen(command)-1] == '|')
-     local_command[strlen(command)-1]='\0';
-   else
-     startup_info.wShowWindow=SW_SHOWDEFAULT;
+    local_command[strlen(command)-1]='\0';
+  else
+    startup_info.wShowWindow=SW_HIDE;
   status=CreateProcess((LPCTSTR) NULL,local_command,(LPSECURITY_ATTRIBUTES)
     NULL,(LPSECURITY_ATTRIBUTES) NULL,(BOOL) FALSE,(DWORD)
     NORMAL_PRIORITY_CLASS,(LPVOID) NULL,(LPCSTR) NULL,&startup_info,