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
5e3cadf8
Commit
5e3cadf8
authored
Jan 28, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't close handles returned by GetStdHandle function.
parent
6f4a1817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
file.c
dlls/msvcrt/file.c
+1
-7
No files found.
dlls/msvcrt/file.c
View file @
5e3cadf8
...
...
@@ -1066,14 +1066,8 @@ void msvcrt_free_io(void)
unsigned
int
i
;
int
j
;
MSVCRT__flushall
();
MSVCRT__fcloseall
();
/* The Win32 _fcloseall() function explicitly doesn't close stdin,
* stdout, and stderr (unlike GNU), so we need to fclose() them here
* or they won't get flushed.
*/
MSVCRT_fclose
(
&
MSVCRT__iob
[
0
]);
MSVCRT_fclose
(
&
MSVCRT__iob
[
1
]);
MSVCRT_fclose
(
&
MSVCRT__iob
[
2
]);
for
(
i
=
0
;
i
<
sizeof
(
MSVCRT___pioinfo
)
/
sizeof
(
MSVCRT___pioinfo
[
0
]);
i
++
)
MSVCRT_free
(
MSVCRT___pioinfo
[
i
]);
...
...
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