[Scummvm-devel] eof & err
Willem Jan Palenstijn
wjp at usecode.org
Sun Jul 12 21:36:28 CEST 2009
On Sun, Jul 12, 2009 at 09:29:04PM +0200, sunmax at libero.it wrote:
> Eh, eh,
>
> my telepathic friends. We crossed-mail ;-)
>
> > > That code is _before_ reading, though, so that should be ok.
> >
> > Correction: kyra does a couple of reads of length 0.
>
> Then in this case, since we are trying to read past the end,
> (even if I am not sure how to interpret the "length 0" case,
> btw: why are we doing this?) we should set _eof.
Just returning 0 directly without doing anything when length is 0 is ok.
-Willem Jan
More information about the Scummvm-devel
mailing list