libc.c: do not lseek(2) on partial sector reads
This commit is contained in:
parent
e207690982
commit
51824e61d0
|
@ -288,7 +288,6 @@ static size_t cdromread(void *restrict ptr, size_t sz,
|
|||
memcpy(ptr, &f->buf[first_sector_sz], firstsz);
|
||||
ptr = (char *)ptr + firstsz;
|
||||
f->pos += firstsz;
|
||||
lseek(f->fildes, f->pos, SEEK_SET);
|
||||
f->cache_available = 0;
|
||||
readb += firstsz;
|
||||
read_complete_sector = 1;
|
||||
|
|
Loading…
Reference in New Issue