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
b100339e
Commit
b100339e
authored
Dec 07, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Dec 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flush file in fputc when character is '\n'.
parent
36aee719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
file.c
dlls/msvcrt/file.c
+10
-4
No files found.
dlls/msvcrt/file.c
View file @
b100339e
...
@@ -2220,11 +2220,17 @@ int MSVCRT__flsbuf(int c, MSVCRT_FILE* file);
...
@@ -2220,11 +2220,17 @@ int MSVCRT__flsbuf(int c, MSVCRT_FILE* file);
int
MSVCRT_fputc
(
int
c
,
MSVCRT_FILE
*
file
)
int
MSVCRT_fputc
(
int
c
,
MSVCRT_FILE
*
file
)
{
{
if
(
file
->
_cnt
>
0
)
{
if
(
file
->
_cnt
>
0
)
{
*
file
->
_ptr
++=
c
;
*
file
->
_ptr
++=
c
;
file
->
_cnt
--
;
file
->
_cnt
--
;
return
c
;
if
(
c
==
'\n'
)
{
int
res
=
msvcrt_flush_buffer
(
file
);
return
res
?
res
:
c
;
}
else
return
c
;
}
else
{
}
else
{
return
MSVCRT__flsbuf
(
c
,
file
);
return
MSVCRT__flsbuf
(
c
,
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