mirror of
https://github.com/reactos/reactos.git
synced 2025-06-30 18:21:25 +00:00
[CRT]
sync fseek with wine 1.1.40 (all msvcrt file tests pass now) svn path=/trunk/; revision=45952
This commit is contained in:
parent
3ddf1ab66f
commit
2097d927f1
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue