kernel32 console bug?

Eric Pouech eric.pouech at wanadoo.fr
Thu Dec 21 14:28:18 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 earthlink.net 
>> <mailto:reif at earthlink.net>>:
>>
>>     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: http://simh.trailing-edge.com/
>>
> I just launched these .exes on xp in explorer and they created a 
> console window.
>
> Doing the same thing in wine using winefile produces the same failure 
> as in wine.  The program quits when GetConsoleMode fails.  The 
> programs do work using wineconsole.
>
> Somehow windows knows to run these .exes in a console window but wine 
> doesn't.
perhaps ShellExecute is supposed to create a console when calling 
CreateProcess for CUI subprocesses (this should be tested)

A+



More information about the wine-devel mailing list