[RESENT] MSVCRT: Use DuplicateHandle for CONOUT too
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun May 22 17:01:35 CDT 2005
>>>>> "Eric" == Eric Pouech <pouech-eric at 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?
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-patches
mailing list