projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8f918
)
[CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test...
author
Amine Khaldi
<amine.khaldi@reactos.org>
Mon, 5 Sep 2016 22:39:59 +0000
(22:39 +0000)
committer
Amine 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
patch
|
blob
|
history
diff --git
a/reactos/sdk/lib/crt/stdio/file.c
b/reactos/sdk/lib/crt/stdio/file.c
index
5346279
..
8b67bd0
100644
(file)
--- 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;
}