From fe28f25fcb2ae8751f0d485492bd54f56dab3614 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Thu, 23 Sep 1999 11:44:52 +0000 Subject: [PATCH] Modification due to problems with winapi-check. --- misc/comm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/comm.c b/misc/comm.c index 16b5b6c4c8c..37dee774568 100644 --- a/misc/comm.c +++ b/misc/comm.c @@ -1013,6 +1013,7 @@ INT16 WINAPI SetCommState16(LPDCB16 lpdcb) */ INT16 WINAPI GetCommState16(INT16 cid, LPDCB16 lpdcb) { + int speed; struct DosDeviceStruct *ptr; struct termios port; @@ -1027,10 +1028,11 @@ INT16 WINAPI GetCommState16(INT16 cid, LPDCB16 lpdcb) lpdcb->Id = cid; #ifndef __EMX__ #ifdef CBAUD - switch (port.c_cflag & CBAUD) { + speed = port.c_cflag & CBAUD; #else - switch (port.c_ospeed) { + speed = port.c_ospeed; #endif + switch(speed) { case B110: lpdcb->BaudRate = 110; break;