sync fseek with wine 1.1.40 (all msvcrt file tests pass now)

svn path=/trunk/; revision=45952
This commit is contained in:
Christoph von Wittich 2010-03-06 15:51:12 +00:00
parent 3ddf1ab66f
commit 2097d927f1

View file

@ -914,6 +914,9 @@ int CDECL fseek(FILE* file, long offset, int whence)
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 */