Reinhard Karcher : ntdll: Fix DTR and CTS controls in serial code.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 3 05:37:39 CST 2007
Module: wine
Branch: master
Commit: 64c1c017c4f30a16ba75e076438f3ceaba3d6e62
URL: http://source.winehq.org/git/wine.git/?a=commit;h=64c1c017c4f30a16ba75e076438f3ceaba3d6e62
Author: Reinhard Karcher <rkarcher at frey.de>
Date: Mon Jan 1 17:41:52 2007 +0100
ntdll: Fix DTR and CTS controls in serial code.
---
dlls/ntdll/serial.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index fe5111b..750b750 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -595,13 +595,13 @@ static NTSTATUS set_handflow(int fd, con
if (shf->ControlHandShake & SERIAL_DTR_HANDSHAKE)
{
WARN("DSR/DTR flow control not supported\n");
- } else if (shf->ControlHandShake & SERIAL_DTR_CONTROL)
+ } else if (!(shf->ControlHandShake & SERIAL_DTR_CONTROL))
whack_modem(fd, ~TIOCM_DTR, 0);
- else
+ else
whack_modem(fd, 0, TIOCM_DTR);
#endif
#ifdef TIOCM_RTS
- if (!(shf->ControlHandShake & SERIAL_DSR_HANDSHAKE))
+ if (!(shf->ControlHandShake & SERIAL_CTS_HANDSHAKE))
{
if ((shf->FlowReplace & (SERIAL_RTS_CONTROL|SERIAL_RTS_HANDSHAKE)) == 0)
whack_modem(fd, ~TIOCM_RTS, 0);
More information about the wine-cvs
mailing list