[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [1/3] cmd: Avoid reading char by char from console (try 2)
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2011-09-28 11:16:20
Message-ID: 87hb3wdiij.fsf () wine ! dyndns ! org
[Download RAW message or body]

Frédéric Delanoy <frederic.delanoy@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@winehq.org



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic