Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3b7baae6
Commit
3b7baae6
authored
Aug 23, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Correctly handle new process group flag in CreateProcess.
(when CREATE_NEW_CONSOLE is used). Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
38906e8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
console.c
dlls/kernel32/tests/console.c
+2
-2
process.c
dlls/kernelbase/process.c
+3
-3
No files found.
dlls/kernel32/tests/console.c
View file @
3b7baae6
...
...
@@ -5080,8 +5080,8 @@ static void test_CreateProcessCUI(void)
/* 15 */
{
FALSE
,
CREATE_NEW_PROCESS_GROUP
,
STARTUPINFO_STD
,
FALSE
,
CP_GROUP_LEADER
,
.
is_todo
=
TRUE
},
{
TRUE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
TRUE
,
CP_INH_CONSOLE
|
CP_WITH_WINDOW
|
CP_GROUP_LEADER
|
CP_ALONE
},
{
FALSE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
TRUE
,
CP_GROUP_LEADER
},
{
TRUE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
FALSE
,
CP_INH_CONSOLE
|
CP_WITH_WINDOW
|
CP_GROUP_LEADER
|
CP_ALONE
|
CP_ENABLED_CTRLC
,
.
is_todo
=
TRUE
},
{
FALSE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
FALSE
,
CP_GROUP_LEADER
|
CP_ENABLED_CTRLC
,
.
is_todo
=
TRUE
},
{
TRUE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
FALSE
,
CP_INH_CONSOLE
|
CP_WITH_WINDOW
|
CP_GROUP_LEADER
|
CP_ALONE
|
CP_ENABLED_CTRLC
},
{
FALSE
,
CREATE_NEW_PROCESS_GROUP
|
CREATE_NEW_CONSOLE
,
CONSOLE_STD
,
FALSE
,
CP_GROUP_LEADER
|
CP_ENABLED_CTRLC
},
/* 20 */
{
TRUE
,
CREATE_NEW_PROCESS_GROUP
|
DETACHED_PROCESS
,
CONSOLE_STD
,
TRUE
,
CP_GROUP_LEADER
},
{
FALSE
,
CREATE_NEW_PROCESS_GROUP
|
DETACHED_PROCESS
,
CONSOLE_STD
,
TRUE
,
CP_GROUP_LEADER
},
{
TRUE
,
CREATE_NEW_PROCESS_GROUP
|
DETACHED_PROCESS
,
CONSOLE_STD
,
FALSE
,
CP_GROUP_LEADER
},
...
...
dlls/kernelbase/process.c
View file @
3b7baae6
...
...
@@ -187,10 +187,10 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename
}
RtlFreeUnicodeString
(
&
newdirW
);
if
(
flags
&
CREATE_NEW_PROCESS_GROUP
)
params
->
ConsoleFlags
=
1
;
else
if
(
!
(
flags
&
CREATE_NEW_PROCESS_GROUP
))
params
->
ProcessGroupId
=
NtCurrentTeb
()
->
Peb
->
ProcessParameters
->
ProcessGroupId
;
else
if
(
!
(
flags
&
CREATE_NEW_CONSOLE
))
params
->
ConsoleFlags
=
1
;
if
(
flags
&
CREATE_NEW_CONSOLE
)
params
->
ConsoleHandle
=
CONSOLE_HANDLE_ALLOC
;
else
if
(
!
(
flags
&
DETACHED_PROCESS
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment