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
4df100cd
Commit
4df100cd
authored
Sep 19, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default, console handles are inheritable.
parent
52f692fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
console.c
dlls/kernel/console.c
+8
-2
No files found.
dlls/kernel/console.c
View file @
4df100cd
...
...
@@ -950,6 +950,7 @@ BOOL WINAPI AllocConsole(void)
STARTUPINFOA
siCurrent
;
STARTUPINFOA
siConsole
;
char
buffer
[
1024
];
SECURITY_ATTRIBUTES
sa
;
TRACE
(
"()
\n
"
);
...
...
@@ -988,12 +989,17 @@ BOOL WINAPI AllocConsole(void)
if
(
!
start_console_renderer
(
&
siConsole
))
goto
the_end
;
/* all std I/O handles are inheritable by default */
sa
.
nLength
=
sizeof
(
sa
);
sa
.
lpSecurityDescriptor
=
NULL
;
sa
.
bInheritHandle
=
TRUE
;
handle_in
=
CreateFileA
(
"CONIN$"
,
GENERIC_READ
|
GENERIC_WRITE
|
SYNCHRONIZE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
0
,
&
sa
,
OPEN_EXISTING
,
0
,
0
);
if
(
handle_in
==
INVALID_HANDLE_VALUE
)
goto
the_end
;
handle_out
=
CreateFileA
(
"CONOUT$"
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
0
,
&
sa
,
OPEN_EXISTING
,
0
,
0
);
if
(
handle_out
==
INVALID_HANDLE_VALUE
)
goto
the_end
;
if
(
!
DuplicateHandle
(
GetCurrentProcess
(),
handle_out
,
GetCurrentProcess
(),
&
handle_err
,
...
...
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