http://bugs.winehq.org/show_bug.cgi?id=18479
--- Comment #8 from André H. nerv@dawncrow.de 2009-08-14 10:39:07 --- Created an attachment (id=23065) --> (http://bugs.winehq.org/attachment.cgi?id=23065) msvcrt: dont overwrite the first 3 file descriptors
MSVCRT_fdend, which is is the highest file descriptor is possible set to zero in the init_io function. the first 3 file descriptors are stdin, stdout and stderr. so they are "overwritten" This patch fixes the problem and also some build problems i had in msys.