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
725e4733
Commit
725e4733
authored
Jun 10, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Remove no longer needed global lock from functions using fd critical sections.
parent
6ed69c10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
file.c
dlls/msvcrt/file.c
+0
-6
No files found.
dlls/msvcrt/file.c
View file @
725e4733
...
...
@@ -1009,7 +1009,6 @@ int CDECL MSVCRT__close(int fd)
ioinfo
*
info
=
get_ioinfo
(
fd
);
int
ret
;
LOCK_FILES
();
TRACE
(
":fd (%d) handle (%p)
\n
"
,
fd
,
info
->
handle
);
if
(
!
(
info
->
wxflag
&
WX_OPEN
))
{
ret
=
-
1
;
...
...
@@ -1021,7 +1020,6 @@ int CDECL MSVCRT__close(int fd)
msvcrt_set_errno
(
GetLastError
());
}
}
UNLOCK_FILES
();
release_ioinfo
(
info
);
return
ret
;
}
...
...
@@ -1039,7 +1037,6 @@ int CDECL MSVCRT__dup2(int od, int nd)
int
ret
;
TRACE
(
"(od=%d, nd=%d)
\n
"
,
od
,
nd
);
LOCK_FILES
();
if
(
od
<
nd
)
{
...
...
@@ -1086,7 +1083,6 @@ int CDECL MSVCRT__dup2(int od, int nd)
release_ioinfo
(
info_od
);
release_ioinfo
(
info_nd
);
UNLOCK_FILES
();
return
ret
;
}
...
...
@@ -2065,7 +2061,6 @@ int CDECL MSVCRT__pipe(int *pfds, unsigned int psize, int textmode)
unsigned
int
wxflags
=
split_oflags
(
textmode
);
int
fd
;
LOCK_FILES
();
fd
=
msvcrt_alloc_fd
(
readHandle
,
wxflags
|
WX_PIPE
);
if
(
fd
!=
-
1
)
{
...
...
@@ -2089,7 +2084,6 @@ int CDECL MSVCRT__pipe(int *pfds, unsigned int psize, int textmode)
CloseHandle
(
writeHandle
);
*
MSVCRT__errno
()
=
MSVCRT_EMFILE
;
}
UNLOCK_FILES
();
}
else
msvcrt_set_errno
(
GetLastError
());
...
...
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