[RESENT] MSVCRT: Use DuplicateHandle for CONOUT too

Eric Pouech pouech-eric at wanadoo.fr
Sun May 22 12:36:36 CDT 2005

Uwe Bonnes a écrit :
> Changelog:
>         dlls/msvcrt/console.c: msvcrt_init_console
>         Use DuplicateHandle for STDOUT too ( CreateFileA("CONOUT$" failed)
>         Bump up error reporting of missing console handles

that's not a correct fix... this handles must be to the console itself, whatever 
the input / output handles are (from process inheritance)
the issue you have is that you run your program without being attached to a 
(wine) console...
you're facing the corner cases of running wine with the "fake" console as being 
inherited from the unix stdin/stdout streams
the correct fix would be to let OpenConsoleW work in those cases
Eric Pouech

More information about the wine-devel mailing list