mirror of
https://github.com/open-simh/simh.git
synced 2026-01-18 01:02:47 +00:00
SERIAL: Make sure to properly initialize break status on serial reads
This commit is contained in:
parent
ba962252b0
commit
7200825da1
@ -845,6 +845,7 @@ DWORD commerrors;
|
||||
COMSTAT cs;
|
||||
char *bptr;
|
||||
|
||||
memset (brk, 0, count); /* start with no break indicators */
|
||||
if (!ClearCommError (port->hPort, &commerrors, &cs)) { /* get the comm error flags */
|
||||
sim_error_serial ("ClearCommError", /* function failed; report unexpected error */
|
||||
(int) GetLastError ());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user