mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[CSRSRV]
When the CsrProcessCreateNewGroup (~= CREATE_NEW_PROCESS_GROUP) flag is set, it means that we are creating a new process group leader, and not the reverse :P svn path=/branches/ntvdm/; revision=63041
This commit is contained in:
parent
dd049f9da3
commit
487d3f80bf
1 changed files with 6 additions and 3 deletions
|
@ -605,15 +605,18 @@ CsrCreateProcess(IN HANDLE hProcess,
|
|||
}
|
||||
|
||||
/* Check if CreateProcess got CREATE_NEW_PROCESS_GROUP */
|
||||
if ((Flags & CsrProcessCreateNewGroup) == 0)
|
||||
if (Flags & CsrProcessCreateNewGroup)
|
||||
{
|
||||
/* Create new data */
|
||||
/*
|
||||
* We create the process group leader of a new process group, therefore
|
||||
* its process group ID and sequence number are its own ones.
|
||||
*/
|
||||
CsrProcess->ProcessGroupId = HandleToUlong(ClientId->UniqueProcess);
|
||||
CsrProcess->ProcessGroupSequence = CsrProcess->SequenceNumber;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Copy it from the current process */
|
||||
/* Inherit the process group ID and sequence number from the current process */
|
||||
CsrProcess->ProcessGroupId = CurrentProcess->ProcessGroupId;
|
||||
CsrProcess->ProcessGroupSequence = CurrentProcess->ProcessGroupSequence;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue