"Eric" == Eric Pouech pouech-eric@wanadoo.fr writes:
Eric> 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
Eric> that's that's not a correct fix... this handles must be to the Eric> console itself, whatever the input / output handles are (from Eric> process inheritance) the issue you have is that you run your Eric> program without being attached to a (wine) console... you're Eric> facing the corner cases of running wine with the "fake" console as Eric> being inherited from the unix stdin/stdout streams the correct fix Eric> would be to let OpenConsoleW work in those cases A+ -- Eric Pouech
Would it be right to first try to open the console and and on failure to use DuplicateHandle?