From: Harlan Stenn Date: Sun, 28 Jul 2013 06:28:23 +0000 (-0400) Subject: [Bug 2439] Fix check of EscapeCommFunction() in ports/winnt/libntp/termios.c X-Git-Tag: NTP_4_2_7P377~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd3a0c7f132550eac51f0f3e17a9db10df1e41b;p=thirdparty%2Fntp.git [Bug 2439] Fix check of EscapeCommFunction() in ports/winnt/libntp/termios.c bk: 51f4ba07SHPwWtTUavxLpxyNZ-NiWg --- diff --git a/ChangeLog b/ChangeLog index 9168c16b4..4adb9a969 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2439] Fix check of EscapeCommFunction() in ports/winnt/libntp/termios.c. (4.2.7p376) 2013/07/24 Released by Harlan Stenn * [Bug 2322] Oncore driver should send 0 PPS offset to GPS. (4.2.7p375) 2013/07/22 Released by Harlan Stenn diff --git a/ports/winnt/libntp/termios.c b/ports/winnt/libntp/termios.c index d0e1351dc..3fe4e4859 100644 --- a/ports/winnt/libntp/termios.c +++ b/ports/winnt/libntp/termios.c @@ -439,7 +439,7 @@ ioctl_tiocmset( BOOL failed; int result; - failed = EscapeCommFunction( + failed = !EscapeCommFunction( h, (*pi & TIOCM_RTS) ? SETRTS @@ -447,7 +447,7 @@ ioctl_tiocmset( ); if (!failed) - failed = EscapeCommFunction( + failed = !EscapeCommFunction( h, (*pi & TIOCM_DTR) ? SETDTR