[CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test...
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 5 Sep 2016 22:39:59 +0000 (22:39 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 5 Sep 2016 22:39:59 +0000 (22:39 +0000)
svn path=/trunk/; revision=72588

reactos/sdk/lib/crt/stdio/file.c

index 5346279..8b67bd0 100644 (file)
@@ -528,10 +528,17 @@ static int msvcrt_flush_buffer(FILE* file)
 
         if(file->_flag & _IORW)
             file->_flag &= ~_IOWRT;
+
+#ifdef __REACTOS__ /* CORE-11949 */
+    file->_ptr=file->_base;
+    file->_cnt=0;
+#endif
     }
 
+#ifndef __REACTOS__ /* CORE-11949 */
     file->_ptr=file->_base;
     file->_cnt=0;
+#endif
     return 0;
 }