http://bugs.winehq.org/show_bug.cgi?id=17123
--- Comment #2 from Bernhard Übelacker bernhardu@vr-web.de 2009-01-24 19:11:48 --- Created an attachment (id=18973) --> (http://bugs.winehq.org/attachment.cgi?id=18973) A patch and test case which sets in _flsbuf the file->_cnt to 0
With this change the make command runs. There is still a problem with the child processes. I'm not sure when exactly to set flag->_cnt to 0.
(Also is in MSVCRT_fwrite memcpy(file->_ptr, ptr, pcnt); is there check needed if file->_ptr is a valid pointer?)