X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fmsvcrt%2Fio%2Flseeki64.c;h=83c45e720297cb7a11436dce67cc3424df4955f1;hp=71b8e768059da0185f26dc978712552d132b7888;hb=HEAD;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/lib/msvcrt/io/lseeki64.c b/lib/msvcrt/io/lseeki64.c index 71b8e76..83c45e7 100644 --- a/lib/msvcrt/io/lseeki64.c +++ b/lib/msvcrt/io/lseeki64.c @@ -5,6 +5,9 @@ //#define SETFILEPOINTEREX_AVAILABLE +/* + * @implemented + */ __int64 _lseeki64(int _fildes, __int64 _offset, int _whence) { #ifdef SETFILEPOINTEREX_AVAILABLE @@ -13,12 +16,12 @@ __int64 _lseeki64(int _fildes, __int64 _offset, int _whence) offset.QuadPart = _offset; // if (invalid_filehnd(_fildes)) { -// errno = EBADF; +// __set_errno ( EBADF ); // return -1L; // } if (SetFilePointerEx((HANDLE)filehnd(_fildes), offset, &new_pos, _whence)) { } else { - //errno = EINVAL; + //__set_errno ( EINVAL ); return -1L; } return new_pos.QuadPart;