patch for Bug 9986: serial/COM code misinterprets XON/XOFF direction

Tom Brus tombrus at gmail.com
Sun Oct 21 16:19:20 CDT 2007


--- wine-0.9.46/dlls/ntdll/serial.c	2007-10-11 14:20:05.000000000 +0200

+++ wine-0.9.46-new/dlls/ntdll/serial.c	2007-10-11 14:21:08.000000000 +0200
@@ -228,9 +228,9 @@
             shf->ControlHandShake |= SERIAL_RTS_CONTROL;
     }
     if (port.c_iflag & IXOFF)
-        shf->FlowReplace |= SERIAL_AUTO_TRANSMIT;
-    if (port.c_iflag & IXON)
         shf->FlowReplace |= SERIAL_AUTO_RECEIVE;
+    if (port.c_iflag & IXON)
+        shf->FlowReplace |= SERIAL_AUTO_TRANSMIT;
 
     shf->XonLimit = 10;
     shf->XoffLimit = 10;
@@ -610,11 +610,11 @@
     }
 #endif
 
-    if (shf->FlowReplace & SERIAL_AUTO_TRANSMIT)
+    if (shf->FlowReplace & SERIAL_AUTO_RECEIVE)
         port.c_iflag |= IXOFF;
     else
         port.c_iflag &= ~IXOFF;
-    if (shf->FlowReplace & SERIAL_AUTO_RECEIVE)
+    if (shf->FlowReplace & SERIAL_AUTO_TRANSMIT)
         port.c_iflag |= IXON;
     else
         port.c_iflag &= ~IXON;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20071021/d28b5f5a/attachment.htm 


More information about the wine-patches mailing list