kernel32 console bug?

Eric Pouech eric.pouech at
Thu Dec 21 14:27:19 CST 2006

Robert Reif a écrit :
> Eric Pouech wrote:
>> if you move the test() call a couple of lines below, when the console 
>> is actually created, it should work.
>> for the actual program to run, you should use wineconsole.
>> A+
>> 2006/12/20, Robert Reif <reif at 
>> <mailto:reif at>>:
>>     I get an error when running a windows console program on wine.  It
>>     appears that in wine, GetStdHandle(STD_INPUT_HANDLE) doesn't 
>> return a
>>     handle to a console so GetConsoleMode() on that handle fails.  The
>>     actual programs that fail are at:
>> -- 
>> Eric Pouech 
> Would it be possible for wine to output a warning that this type of 
> program must be run using wineconsole?
that may not be straightforward as lots of console APIs would require 
this kind of fix

More information about the wine-devel mailing list