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
9ce2a8a6
Commit
9ce2a8a6
authored
Jun 03, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use fd critical section in msvcrt_create_io_inherit_block.
parent
86baccc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
file.c
dlls/msvcrt/file.c
+2
-1
No files found.
dlls/msvcrt/file.c
View file @
9ce2a8a6
...
...
@@ -498,7 +498,7 @@ unsigned msvcrt_create_io_inherit_block(WORD *size, BYTE **block)
for
(
fd
=
0
;
fd
<
MSVCRT_fdend
;
fd
++
)
{
/* to be inherited, we need it to be open, and that DONTINHERIT isn't set */
fdinfo
=
get_ioinfo
_nolock
(
fd
);
fdinfo
=
get_ioinfo
(
fd
);
if
((
fdinfo
->
wxflag
&
(
WX_OPEN
|
WX_DONTINHERIT
))
==
WX_OPEN
)
{
*
wxflag_ptr
=
fdinfo
->
wxflag
;
...
...
@@ -509,6 +509,7 @@ unsigned msvcrt_create_io_inherit_block(WORD *size, BYTE **block)
*
wxflag_ptr
=
0
;
*
handle_ptr
=
INVALID_HANDLE_VALUE
;
}
release_ioinfo
(
fdinfo
);
wxflag_ptr
++
;
handle_ptr
++
;
}
return
TRUE
;
...
...
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