mirror of
https://github.com/simh/simh.git
synced 2026-03-02 09:47:40 +00:00
SERIAL: Make sure to properly initialize break status on serial reads
This commit is contained in:
@@ -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 ());
|
||||
|
||||
Reference in New Issue
Block a user