Author: tkreuzer Date: Fri Jan 7 21:15:35 2011 New Revision: 50314
URL: http://svn.reactos.org/svn/reactos?rev=50314&view=rev Log: [CRT] Fix _flsbuf return value
Modified: trunk/reactos/lib/sdk/crt/stdio/_flsbuf.c
Modified: trunk/reactos/lib/sdk/crt/stdio/_flsbuf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/stdio/_flsbuf.c... ============================================================================== --- trunk/reactos/lib/sdk/crt/stdio/_flsbuf.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/stdio/_flsbuf.c [iso-8859-1] Fri Jan 7 21:15:35 2011 @@ -78,5 +78,5 @@ return EOF; }
- return (TCHAR)ch; + return ch & (sizeof(TCHAR) > sizeof(char) ? 0xffff : 0xff); }