11 Jan
2010
11 Jan
'10
12:24 p.m.
Uwe Bonnes <bon(a)hertz.ikp.physik.tu-darmstadt.de> writes:
@@ -1767,6 +1771,12 @@ static int read_i(int fd, void *buf, unsigned int count) if (MSVCRT_fdesc[fd].wxflag & WX_TEXT) { DWORD i, j; + if (bufstart[num_read-1] == '\r') + { + if(pushback) + MSVCRT__lseeki64(fd, -1, SEEK_CUR);
You can't use lseek for this, the file may not be seekable. -- Alexandre Julliard julliard(a)winehq.org