[1/3] cmd: Avoid reading char by char from console (try 2)

Alexandre Julliard julliard at winehq.org
Wed Sep 28 06:16:20 CDT 2011


Frédéric Delanoy <frederic.delanoy at gmail.com> writes:

> Yes, but it can fail for other reasons as well.
> If it really is a console handle, but ReadConsoleW fails, isn't it
> better to return failure early rather than trying to read from
> (assumed) file handle h?

It probably doesn't matter much, but you can always check last error or
something like that.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list