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
90b68f99
Commit
90b68f99
authored
Jan 23, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Reset write direction after flush on read/write stream.
parent
7880525f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
file.c
dlls/msvcrt/file.c
+4
-0
No files found.
dlls/msvcrt/file.c
View file @
90b68f99
...
...
@@ -613,6 +613,9 @@ static int msvcrt_flush_buffer(MSVCRT_FILE* file)
file
->
_flag
|=
MSVCRT__IOERR
;
return
MSVCRT_EOF
;
}
if
(
file
->
_flag
&
MSVCRT__IORW
)
file
->
_flag
&=
~
MSVCRT__IOWRT
;
}
file
->
_ptr
=
file
->
_base
;
...
...
@@ -3797,6 +3800,7 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file)
res
=
msvcrt_flush_buffer
(
file
);
if
(
res
)
return
res
;
file
->
_flag
|=
MSVCRT__IOWRT
;
file
->
_cnt
=
file
->
_bufsiz
;
}
*
file
->
_ptr
++
=
c
;
...
...
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