Patch to fix GetCommState "Invalid Argument" errors with Linux usbserial devices

James Liggett jrliggett at cox.net
Thu Aug 4 23:56:05 CDT 2005


Hi,
This patch fixes an "Invalid Argument" error in GetCommState when a
program tries to get information about a usbserial device. With this
patch, Wine provides a "fake" serial device control block to a Windows
program requesting it, such that the program believes that it's
interfacing with an actual serial port, since usbserial devices don't
currently acknowledge traditional DCBs via tcgetattr/tcsetattr. Using
this patch I was able to synchronize a serial-based Palm PDA with Palm
Desktop on Wine with a pl2303 USB-serial converter. I'm also told that
this patch also works with FTDI devices.

James Liggett   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comm-usbserial.patch
Type: text/x-patch
Size: 3140 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050804/d8631eaf/comm-usbserial.bin


More information about the wine-patches mailing list