Skip to content
Snippets Groups Projects
Commit cce46e57 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

Check for completed overlappeds in ReadComm16 to solve problems with

programs that loop on it but don't get data.
parent cf80c545
No related branches found
No related tags found
No related merge requests found
......@@ -1068,6 +1068,9 @@ INT16 WINAPI ReadComm16(INT16 cid,LPSTR lpvBuf,INT16 cbRead)
return -1;
}
if(0==comm_inbuf(ptr))
WaitForSingleObjectEx( COM[cid].read_ov.hEvent, 1, TRUE);
/* read unget character */
if (ptr->unget>=0) {
*lpvBuf++ = ptr->unget;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment