mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Do not create a console for GUI applications.
svn path=/trunk/; revision=4436
This commit is contained in:
parent
4950a5230f
commit
b47552e96f
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.63 2003/03/16 14:16:54 chorns Exp $
|
||||
/* $Id: create.c,v 1.64 2003/03/26 22:11:27 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -904,7 +904,7 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
|||
Status = NtDuplicateObject (NtCurrentProcess(),
|
||||
Ppb->CurrentDirectoryHandle,
|
||||
hProcess,
|
||||
&Ppb->CurrentDirectoryHandle,
|
||||
&Ppb->CurrentDirectoryHandle,
|
||||
0,
|
||||
TRUE,
|
||||
DUPLICATE_SAME_ACCESS);
|
||||
|
@ -952,6 +952,12 @@ CreateProcessW(LPCWSTR lpApplicationName,
|
|||
CsrRequest.Type = CSRSS_CREATE_PROCESS;
|
||||
CsrRequest.Data.CreateProcessRequest.NewProcessId =
|
||||
ProcessBasicInfo.UniqueProcessId;
|
||||
if (Sii.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI)
|
||||
{
|
||||
/* Do not create a console for GUI applications */
|
||||
dwCreationFlags &= ~CREATE_NEW_CONSOLE;
|
||||
dwCreationFlags |= DETACHED_PROCESS;
|
||||
}
|
||||
CsrRequest.Data.CreateProcessRequest.Flags = dwCreationFlags;
|
||||
Status = CsrClientCallServer(&CsrRequest,
|
||||
&CsrReply,
|
||||
|
|
Loading…
Reference in a new issue