Commit cce46e57 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Check for completed overlappeds in ReadComm16 to solve problems with

programs that loop on it but don't get data.
parent cf80c545
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment