Author: cwittich
Date: Sat Mar 6 16:51:12 2010
New Revision: 45952
URL:
http://svn.reactos.org/svn/reactos?rev=45952&view=rev
Log:
[CRT]
sync fseek with wine 1.1.40 (all msvcrt file tests pass now)
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] Sat Mar 6 16:51:12 2010
@@ -914,6 +914,9 @@
if (file->_ptr[i] == '\n')
offset--;
}
+ /* Black magic when reading CR at buffer boundary*/
+ if(fdesc[file->_file].wxflag & WX_READCR)
+ offset--;
}
}
/* Discard buffered input */