serial_flush() implements FlushFileBuffers for serial devices wrongly

Wolfgang Walter wine at
Wed Jun 3 04:49:42 CDT 2009


FlushFileBuffers should write out any data not yet transmitted but
serial_flush() instead discards any data not yet transmitted

This is because it uses tcflush() instead of tcdrain().

Call tcdrain for serial handles directly from NtFlushBuffersFile()
and remove serial_flush() in server/serial.c

Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
Leiter EDV
Leopoldstraße 15
80802 München
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-serial_flush-implements-FlushFileBuffers-for-seria.patch
Type: text/x-diff
Size: 3093 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list