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
58d6a9a3
Commit
58d6a9a3
authored
Mar 12, 2012
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Mar 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add a helper function to flush all buffers.
parent
1a01893c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
file.c
dlls/msvcrt/file.c
+12
-6
No files found.
dlls/msvcrt/file.c
View file @
58d6a9a3
...
...
@@ -748,13 +748,11 @@ int CDECL MSVCRT__wunlink(const MSVCRT_wchar_t *path)
return
-
1
;
}
/*
_flushall calls MSVCRT_fflush which calls _flushall
*/
/*
flush_all_buffers calls MSVCRT_fflush which calls flush_all_buffers
*/
int
CDECL
MSVCRT_fflush
(
MSVCRT_FILE
*
file
);
/*********************************************************************
* _flushall (MSVCRT.@)
*/
int
CDECL
MSVCRT__flushall
(
void
)
/* INTERNAL: Flush all stream buffer */
static
int
msvcrt_flush_all_buffers
(
int
mask
)
{
int
i
,
num_flushed
=
0
;
MSVCRT_FILE
*
file
;
...
...
@@ -765,7 +763,7 @@ int CDECL MSVCRT__flushall(void)
if
(
file
->
_flag
)
{
if
(
file
->
_flag
&
MSVCRT__IOWRT
)
{
if
(
file
->
_flag
&
mask
)
{
MSVCRT_fflush
(
file
);
num_flushed
++
;
}
...
...
@@ -778,6 +776,14 @@ int CDECL MSVCRT__flushall(void)
}
/*********************************************************************
* _flushall (MSVCRT.@)
*/
int
CDECL
MSVCRT__flushall
(
void
)
{
return
msvcrt_flush_all_buffers
(
MSVCRT__IOWRT
);
}
/*********************************************************************
* fflush (MSVCRT.@)
*/
int
CDECL
MSVCRT_fflush
(
MSVCRT_FILE
*
file
)
...
...
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