Bug 421751: make nsIProcess.run() not open any console windows on Windows. r=dougt, sr=mconnor, a=damons

This commit is contained in:
thunder@mozilla.com 2008-03-12 14:03:08 -07:00
Родитель 7d05eee191
Коммит c2d135cd74
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -250,6 +250,12 @@ nsProcess::Run(PRBool blocking, const char **args, PRUint32 count,
ZeroMemory(&startupInfo, sizeof(startupInfo));
startupInfo.cb = sizeof(startupInfo);
/* The CREATE_NO_WINDOW flag is important to prevent console
* windows from appearing. This makes behavior the same on all
* platforms. This won't work on win9x, however. The flag will
* not have any effect on non-console applications.
*/
retVal = CreateProcess(NULL,
// const_cast<char*>(mTargetPath.get()),
cmdLine,
@ -258,7 +264,7 @@ nsProcess::Run(PRBool blocking, const char **args, PRUint32 count,
NULL, /* security attributes for the primary
* thread in the new process */
FALSE, /* inherit handles */
0, /* creation flags */
CREATE_NO_WINDOW, /* creation flags */
NULL, /* env */
NULL, /* current drive and directory */
&startupInfo,