SetFilePointer correction; return ERROR_NEGATIVE_SEEK (broken by the

64 bit file access enhancement).
This commit is contained in:
Bill Medland 2001-06-19 03:30:53 +00:00 committed by Alexandre Julliard
parent 87f48fcc7b
commit e81bf3f3ce

View file

@ -354,7 +354,7 @@ static int set_file_pointer( handle_t handle, unsigned int *low, int *high, int
/* also check EPERM due to SuSE7 2.2.16 lseek() EPERM kernel bug */
if (((errno == EINVAL) || (errno == EPERM))
&& (whence != SEEK_SET) && (*low < 0))
&& (whence != SEEK_SET) && (*high < 0))
set_error( 0xc0010000 | ERROR_NEGATIVE_SEEK /* FIXME */ );
else
file_set_error();