Hi,
MS Visual C++ v6, when invoking the compiler and other build tools does the following:
create anonymous pipe; duplicate the pipes write handle; open's the file NUL
calls CreateProcess starting vcspawn.exe with: startup info iohandles set to the 3 handles obtained above; the startup info flag STARTF_USESTDHANDLES set; create flag CREATE_NEW_CONSOLE set.
the parent process reads from the pipe, and analyses the compiler and other messages that are obtained that way.
Wine's console startup code is not really expecting this and insists on creating new stdio handles instead of inheriting them.
The attached patch makes this work properly.
Changelog: server : process.c dlls/kernel : console.c A starting process must obey the STARTF_USESTDHANDLES flag, even it is starting a new console.
Rein.