mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 11:19:17 +00:00
[PXEXT] Avoid returning a false EOF when we have an empty buffer queued
This commit is contained in:
parent
7234f91bf8
commit
ee5bdb0d75
@ -293,7 +293,9 @@ ssize_t read_user ( int fd, userptr_t buffer, off_t offset, size_t max_len ) {
|
||||
free_iob ( iobuf );
|
||||
}
|
||||
file->pos += len;
|
||||
return len;
|
||||
if ( len )
|
||||
return len;
|
||||
break;
|
||||
}
|
||||
|
||||
/* If file has completed, return (after returning all data) */
|
||||
|
Loading…
Reference in New Issue
Block a user