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
cf7479ca
Commit
cf7479ca
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 support for _flushall to clear all input buffer.
parent
58d6a9a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
file.c
dlls/msvcrt/file.c
+2
-2
file.c
dlls/msvcrt/tests/file.c
+1
-1
No files found.
dlls/msvcrt/file.c
View file @
cf7479ca
...
...
@@ -780,7 +780,7 @@ static int msvcrt_flush_all_buffers(int mask)
*/
int
CDECL
MSVCRT__flushall
(
void
)
{
return
msvcrt_flush_all_buffers
(
MSVCRT__IOWRT
);
return
msvcrt_flush_all_buffers
(
MSVCRT__IOWRT
|
MSVCRT__IOREAD
);
}
/*********************************************************************
...
...
@@ -789,7 +789,7 @@ int CDECL MSVCRT__flushall(void)
int
CDECL
MSVCRT_fflush
(
MSVCRT_FILE
*
file
)
{
if
(
!
file
)
{
MSVCRT__flushall
(
);
msvcrt_flush_all_buffers
(
MSVCRT__IOWRT
);
}
else
if
(
file
->
_flag
&
MSVCRT__IOWRT
)
{
int
res
;
...
...
dlls/msvcrt/tests/file.c
View file @
cf7479ca
...
...
@@ -635,7 +635,7 @@ static void test_fflush( void )
ok
(
ret
>=
0
,
"unexpected ret %d
\n
"
,
ret
);
memset
(
buf2
,
'?'
,
sizeof
(
buf2
));
fread
(
buf2
,
1
,
sizeof
(
buf2
),
tempfh
);
todo_wine
ok
(
memcmp
(
buf1
,
buf2
,
sizeof
(
buf1
))
==
0
,
"Got unexpected data (%c)
\n
"
,
buf2
[
0
]);
ok
(
memcmp
(
buf1
,
buf2
,
sizeof
(
buf1
))
==
0
,
"Got unexpected data (%c)
\n
"
,
buf2
[
0
]);
fclose
(
tempfh
);
...
...
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