Author: gschneider
Date: Fri Dec 19 05:39:04 2008
New Revision: 38184
URL:
http://svn.reactos.org/svn/reactos?rev=38184&view=rev
Log:
- Fix return values for fputc and _flsbuf: return only one char
- Fixes three msvcrt file winetests
Modified:
trunk/reactos/lib/sdk/crt/stdio/file.c
Modified: trunk/reactos/lib/sdk/crt/stdio/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/file.c?r…
==============================================================================
--- trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/stdio/file.c [iso-8859-1] Fri Dec 19 05:39:04 2008
@@ -2292,7 +2292,7 @@
return res ? res : c;
}
else
- return c;
+ return c & 0xff;
} else {
return _flsbuf(c, file);
}
@@ -2321,7 +2321,7 @@
unsigned char cc=c;
int len;
len = _write(file->_file, &cc, 1);
- if (len == 1) return c;
+ if (len == 1) return c & 0xff;
file->_flag |= _IOERR;
return EOF;
}