[ros-diffs] [cwittich] 45952: [CRT] sync fseek with wine 1.1.40 (all msvcrt file tests pass now)

cwittich at svn.reactos.org cwittich at svn.reactos.org
Sat Mar 6 16:51:12 CET 2010


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?rev=45952&r1=45951&r2=45952&view=diff
==============================================================================
--- 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 */




More information about the Ros-diffs mailing list