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
819565be
Commit
819565be
authored
Apr 08, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: IO init.
Make sure, when copying handles from std ones (when no io info is inherited from parent) to create inheritable handles (spotted by qingdao daoo).
parent
98783faa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
file.c
dlls/msvcrt/file.c
+3
-3
No files found.
dlls/msvcrt/file.c
View file @
819565be
...
...
@@ -346,21 +346,21 @@ void msvcrt_init_io(void)
if
(
!
(
MSVCRT_fdesc
[
0
].
wxflag
&
WX_OPEN
)
||
MSVCRT_fdesc
[
0
].
handle
==
INVALID_HANDLE_VALUE
)
{
DuplicateHandle
(
GetCurrentProcess
(),
GetStdHandle
(
STD_INPUT_HANDLE
),
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
0
].
handle
,
0
,
FALS
E
,
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
0
].
handle
,
0
,
TRU
E
,
DUPLICATE_SAME_ACCESS
);
MSVCRT_fdesc
[
0
].
wxflag
=
WX_OPEN
|
WX_TEXT
;
}
if
(
!
(
MSVCRT_fdesc
[
1
].
wxflag
&
WX_OPEN
)
||
MSVCRT_fdesc
[
1
].
handle
==
INVALID_HANDLE_VALUE
)
{
DuplicateHandle
(
GetCurrentProcess
(),
GetStdHandle
(
STD_OUTPUT_HANDLE
),
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
1
].
handle
,
0
,
FALS
E
,
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
1
].
handle
,
0
,
TRU
E
,
DUPLICATE_SAME_ACCESS
);
MSVCRT_fdesc
[
1
].
wxflag
=
WX_OPEN
|
WX_TEXT
;
}
if
(
!
(
MSVCRT_fdesc
[
2
].
wxflag
&
WX_OPEN
)
||
MSVCRT_fdesc
[
2
].
handle
==
INVALID_HANDLE_VALUE
)
{
DuplicateHandle
(
GetCurrentProcess
(),
GetStdHandle
(
STD_ERROR_HANDLE
),
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
2
].
handle
,
0
,
FALS
E
,
GetCurrentProcess
(),
&
MSVCRT_fdesc
[
2
].
handle
,
0
,
TRU
E
,
DUPLICATE_SAME_ACCESS
);
MSVCRT_fdesc
[
2
].
wxflag
=
WX_OPEN
|
WX_TEXT
;
}
...
...
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