X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fmsvcrt%2Fio%2Flseek.c;fp=lib%2Fmsvcrt%2Fio%2Flseek.c;h=5e20b08bd945784de8f938a268b2e173b1aa1570;hp=4f03d437ec44008fcd4370813180b59126279b71;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3 diff --git a/lib/msvcrt/io/lseek.c b/lib/msvcrt/io/lseek.c index 4f03d43..5e20b08 100644 --- a/lib/msvcrt/io/lseek.c +++ b/lib/msvcrt/io/lseek.c @@ -5,13 +5,5 @@ long _lseek(int _fildes, long _offset, int _whence) { - return (SetFilePointer((HANDLE)filehnd(_fildes), _offset, NULL, _whence)); -} - -__int64 _lseeki64(int _fildes, __int64 _offset, int _whence) -{ - ULONG lo_pos, hi_pos; - - lo_pos = SetFilePointer((HANDLE)filehnd(_fildes), _offset, &hi_pos, _whence); - return((((__int64)hi_pos) << 32) + lo_pos); + return (SetFilePointer((HANDLE)filehnd(_fildes), _offset, NULL, _whence)); }