Author: akhaldi
Date: Mon Sep 5 22:39:59 2016
New Revision: 72588
URL:
http://svn.reactos.org/svn/reactos?rev=72588&view=rev
Log:
[CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test
regressions. CORE-11866 CORE-11949
Modified:
trunk/reactos/sdk/lib/crt/stdio/file.c
Modified: trunk/reactos/sdk/lib/crt/stdio/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/crt/stdio/file.c?r…
==============================================================================
--- trunk/reactos/sdk/lib/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/crt/stdio/file.c [iso-8859-1] Mon Sep 5 22:39:59 2016
@@ -528,10 +528,17 @@
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;
}