msvcrt: fread: fill buffer on small reads

Alexandre Julliard julliard at winehq.org
Wed Oct 11 02:53:36 CDT 2006


Duane Clark <dclark at akamail.com> writes:

> Are you referring to _read() or read_i()? Those don't have an
> associated internal file buffer/cache (I guess because they don't have
> an associated file->_cnt and _ptr). Or were you referring to some
> other read call?
>
> fread already does a _read() once it determines the current buffer is empty.

Yes, and on small reads what it should do is a bigger _read() to
refill the buffer, instead of limiting it to the size that the app
requested.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list