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
b052afd4
Commit
b052afd4
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_free_fd.
parent
c7b0fb51
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 @
b052afd4
...
...
@@ -332,10 +332,8 @@ static HANDLE msvcrt_fdtoh(int fd)
/* INTERNAL: free a file entry fd */
static
void
msvcrt_free_fd
(
int
fd
)
{
ioinfo
*
fdinfo
;
ioinfo
*
fdinfo
=
get_ioinfo
(
fd
)
;
LOCK_FILES
();
fdinfo
=
get_ioinfo_nolock
(
fd
);
if
(
fdinfo
!=
&
MSVCRT___badioinfo
)
{
fdinfo
->
handle
=
INVALID_HANDLE_VALUE
;
...
...
@@ -358,7 +356,9 @@ static void msvcrt_free_fd(int fd)
break
;
}
}
release_ioinfo
(
fdinfo
);
LOCK_FILES
();
if
(
fd
==
MSVCRT_fdend
-
1
)
MSVCRT_fdend
--
;
if
(
fd
<
MSVCRT_fdstart
)
...
...
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