Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
645c0cc6
Commit
645c0cc6
authored
Feb 05, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Set the console flag in the parent for CREATE_NEW_PROCESS_GROUP.
parent
cf9ced5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
kernel_main.c
dlls/kernel/kernel_main.c
+0
-3
process.c
dlls/kernel/process.c
+4
-2
No files found.
dlls/kernel/kernel_main.c
View file @
645c0cc6
...
...
@@ -156,9 +156,6 @@ static BOOL process_attach(void)
*/
}
if
(
main_create_flags
&
CREATE_NEW_PROCESS_GROUP
)
SetConsoleCtrlHandler
(
NULL
,
TRUE
);
/* Create 16-bit task */
LoadLibrary16
(
"krnl386.exe"
);
thread_attach
();
...
...
dlls/kernel/process.c
View file @
645c0cc6
...
...
@@ -1387,7 +1387,7 @@ static int fork_and_exec( const char *filename, const WCHAR *cmdline,
* create_user_params
*/
static
RTL_USER_PROCESS_PARAMETERS
*
create_user_params
(
LPCWSTR
filename
,
LPCWSTR
cmdline
,
LPCWSTR
cur_dir
,
LPWSTR
env
,
LPCWSTR
cur_dir
,
LPWSTR
env
,
DWORD
flags
,
const
STARTUPINFOW
*
startup
)
{
RTL_USER_PROCESS_PARAMETERS
*
params
;
...
...
@@ -1425,6 +1425,8 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
return
NULL
;
}
if
(
flags
&
CREATE_NEW_PROCESS_GROUP
)
params
->
ConsoleFlags
=
1
;
params
->
hStdInput
=
startup
->
hStdInput
;
params
->
hStdOutput
=
startup
->
hStdOutput
;
params
->
hStdError
=
startup
->
hStdError
;
...
...
@@ -1467,7 +1469,7 @@ static BOOL create_process( HANDLE hFile, LPCWSTR filename, LPWSTR cmd_line, LPW
if
(
!
env
)
RtlAcquirePebLock
();
if
(
!
(
params
=
create_user_params
(
filename
,
cmd_line
,
cur_dir
,
env
,
startup
)))
if
(
!
(
params
=
create_user_params
(
filename
,
cmd_line
,
cur_dir
,
env
,
flags
,
startup
)))
{
if
(
!
env
)
RtlReleasePebLock
();
return
FALSE
;
...
...
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