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
bc33d39e
Commit
bc33d39e
authored
Dec 13, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't flush stream in fputs function.
parent
1000a6bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
file.c
dlls/msvcrt/file.c
+3
-13
No files found.
dlls/msvcrt/file.c
View file @
bc33d39e
...
@@ -3434,23 +3434,13 @@ int CDECL MSVCRT_fgetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos)
...
@@ -3434,23 +3434,13 @@ int CDECL MSVCRT_fgetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos)
*/
*/
int
CDECL
MSVCRT_fputs
(
const
char
*
s
,
MSVCRT_FILE
*
file
)
int
CDECL
MSVCRT_fputs
(
const
char
*
s
,
MSVCRT_FILE
*
file
)
{
{
MSVCRT_size_t
i
,
len
=
strlen
(
s
);
MSVCRT_size_t
len
=
strlen
(
s
);
int
ret
;
int
ret
;
MSVCRT__lock_file
(
file
);
MSVCRT__lock_file
(
file
);
if
(
!
(
msvcrt_get_ioinfo
(
file
->
_file
)
->
wxflag
&
WX_TEXT
))
{
ret
=
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
ret
=
MSVCRT_fwrite
(
s
,
sizeof
(
*
s
),
len
,
file
)
==
len
?
0
:
MSVCRT_EOF
;
MSVCRT__unlock_file
(
file
);
return
ret
;
}
for
(
i
=
0
;
i
<
len
;
i
++
)
if
(
MSVCRT_fputc
(
s
[
i
],
file
)
==
MSVCRT_EOF
)
{
MSVCRT__unlock_file
(
file
);
return
MSVCRT_EOF
;
}
MSVCRT__unlock_file
(
file
);
MSVCRT__unlock_file
(
file
);
return
0
;
return
ret
;
}
}
/*********************************************************************
/*********************************************************************
...
...
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