From 8f0d69159e0a1ed44f93e06cab5905ddba310eef Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 2 Apr 2007 20:44:30 +0000 Subject: fix for #33664 Console window appears when using exec() --- TSRM/tsrm_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TSRM') diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 5a8983b5e4..ae9ea312f2 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -219,7 +219,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")); sprintf(cmd, "%s /c %s", TWG(comspec), command); - if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS, env, cwd, &startup, &process)) { + if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) { return NULL; } free(cmd); -- cgit v1.2.1