From: dirk Date: Sat, 30 Nov 2013 18:59:23 +0000 (+0000) Subject: The command window created by NTSystemCommand will be hidden. X-Git-Tag: 7.0.1-0~3081 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87eeb160d316557aed2beebb768a0c12d9d1c329;p=imagemagick The command window created by NTSystemCommand will be hidden. --- diff --git a/MagickCore/nt-base.c b/MagickCore/nt-base.c index 858dd968a..31be94ef1 100644 --- a/MagickCore/nt-base.c +++ b/MagickCore/nt-base.c @@ -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,