https://bugs.winehq.org/show_bug.cgi?id=38204 Bug ID: 38204 Summary: WriteFileEx/ReadFileEx C Ubuntu 14.04 LTS Product: Wine Version: 1.6.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: kotomixkyou(a)gmail.com Distribution: --- Created attachment 50995 --> https://bugs.winehq.org/attachment.cgi?id=50995 Full description of bug Previously posted here: https://forum.winehq.org/viewtopic.php?f=8&t=24271 or see attached document General problem: Wine 1.6.2 Ubuntu 14.04 LTS ReadFileEx CompletionRoutine does not take the expected dwNumberOfBytesTransfered in Ubuntu-Wine compared with windows. In windows dwNumberOfBytesTransfered is less than or equal to nNumberOfBytesToRead corresponding to the amount of data available to be read from an external device, but in Ubuntu-Wine nNumberOfBytesTransfered is always equal to nNumberOfBytesToRead/Write. Changing COMMTIMEOUTS.ReadIntervalTimeout to be MAXDWORD does return a smaller chunk of data but does not remedy the problem as it cuts off the packet. When attempting to write into an external device that isn't turned on but connected by USB, WriteFileEx returns success in both windows and Ubuntu-Wine, but does not create the correct windows error 87, and the CompletionRoutine does not execute after the second WriteFileEx. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.