Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b264962
Commit
1b264962
authored
May 20, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
May 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Make fclose thread safe.
parent
d18f0766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
file.c
dlls/msvcrt/file.c
+2
-0
No files found.
dlls/msvcrt/file.c
View file @
1b264962
...
...
@@ -2557,6 +2557,7 @@ int CDECL MSVCRT_fclose(MSVCRT_FILE* file)
{
int
r
,
flag
;
MSVCRT__lock_file
(
file
);
flag
=
file
->
_flag
;
MSVCRT_free
(
file
->
_tmpfname
);
file
->
_tmpfname
=
NULL
;
...
...
@@ -2569,6 +2570,7 @@ int CDECL MSVCRT_fclose(MSVCRT_FILE* file)
r
=
MSVCRT__close
(
file
->
_file
);
file
->
_flag
=
0
;
MSVCRT__unlock_file
(
file
);
if
(
file
<
MSVCRT__iob
||
file
>=
MSVCRT__iob
+
_IOB_ENTRIES
)
DeleteCriticalSection
(
&
((
file_crit
*
)
file
)
->
crit
);
...
...
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