Windows: Fix false ResourceError triggering for CDC ACM devices


When transmitted data to the USB serial port of the class CDC ACM, is
triggered an unexpected TXEMPTY event, which we didn't add to a mask of
events in SetCommMask(). In this case handler processCompletionRoutine()
interpreted it as ResourceError.

This DCD ACM devices over USB connection using the Microsoft USB serial
driver (usbser.sys). Thus, allegedly, this behavior identical for all
standard CDC ACM devices on Windows.

Solution - check on unexpected EV_TXEMPTY flag and immediately return
true from processCompletionRoutine().

Thanks to Josh Handley.

Task-number: QTPLAYGROUND-22
Change-Id: Iac3eccc79e243e5bbf1a34cd44458c9ad265a5db
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
commit2bcac223e64599eb74889975053f6547000b13cb
parentf30159132c2c486508d227fc7d5615e032df6f68
authorDenis Shienkov <denis.shienkov@gmail.com>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeThu, 6 Jun 2013 20:39:14 +0200