From 3f38d71d2dfc9b502c2744da8983db363771016c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 5 Sep 2016 22:39:59 +0000 Subject: [PATCH] [CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test regressions. CORE-11866 CORE-11949 svn path=/trunk/; revision=72588 --- reactos/sdk/lib/crt/stdio/file.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/sdk/lib/crt/stdio/file.c b/reactos/sdk/lib/crt/stdio/file.c index 53462799920..8b67bd08379 100644 --- a/reactos/sdk/lib/crt/stdio/file.c +++ b/reactos/sdk/lib/crt/stdio/file.c @@ -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; } -- 2.17.1