From bc33d39e23d7c87b4ab520a771b17a091c217ced Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 13 Dec 2012 13:45:00 +0100 Subject: [PATCH] msvcrt: Don't flush stream in fputs function. --- dlls/msvcrt/file.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index e157ede01b5..9d75bc61e79 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -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) { - MSVCRT_size_t i, len = strlen(s); + MSVCRT_size_t len = strlen(s); int ret; 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; - MSVCRT__unlock_file(file); - return ret; - } - for (i=0; i