http://bugs.winehq.org/show_bug.cgi?id=19713
--- Comment #7 from Alexander Varnin fenixk19@mail.ru 2009-08-15 03:09:29 --- (In reply to comment #6)
This seems like a bug. In general, a difference in behavior between Windows and Wine is considered a bug. With regards to the earlier program, with bManualReset = FALSE, it *appears* to be a program bug rather than a Wine bug. It may well be that under Windows, with a particular program and serial driver, the program doesn't deadlock. However, with the large MSDN warning about potential deadlock, I'd want to be certain that the deadlock _never_ happens, with any serial driver and under any version of Windows, before I say that it is a Wine bug.
Lots of clients use this soft on their windows machines and they have never reported about problems. I can say, that in windows it doesn't matter, if you use manual-reset or auto-reset. Program behaves same way.
So with the modified program, with bManualReset = TRUE, GetOverlappedResult returns TRUE in Windows and FALSE in Wine, correct?
Yes, it works so.
P.S. I'm leaving for two weeks, so i will not answer at this time.