From 9bf671b7f602bdb15799fe451e0087b2f173a2ed Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sat, 15 Jan 2005 20:20:53 +0000 Subject: [PATCH] - Fixed a bug which results in losing a character in the write buffer if there is a call to lseek immediately after the call to flsbuf. svn path=/trunk/; revision=13065 --- reactos/lib/msvcrt/stdio/flsbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/lib/msvcrt/stdio/flsbuf.c b/reactos/lib/msvcrt/stdio/flsbuf.c index e0b4154b902..2ca113c15be 100644 --- a/reactos/lib/msvcrt/stdio/flsbuf.c +++ b/reactos/lib/msvcrt/stdio/flsbuf.c @@ -93,6 +93,7 @@ int _flsbuf(int c, FILE* f) if ((f->_flag & (_IO_LBF|_IONBF)) == 0) { f->_cnt--; *f->_ptr++ = c; + f->_flag |= _IODIRTY; } return c; }