2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 17:41:55 +00:00

[PXEXT] Avoid returning a false EOF when we have an empty buffer queued

This commit is contained in:
Michael Brown 2008-03-25 20:29:42 +00:00
parent 7234f91bf8
commit ee5bdb0d75

View File

@ -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) */