user32: Speed improvement for 16bit comm support.
The previous version of this patch wasn't applied correctly.
This commit is contained in:
parent
26f29fdad0
commit
426ae2f2e2
|
@ -721,7 +721,9 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
|
||||||
|
|
||||||
if (lpStat) {
|
if (lpStat) {
|
||||||
lpStat->status = 0;
|
lpStat->status = 0;
|
||||||
SleepEx(1,TRUE);
|
|
||||||
|
if (comm_inbuf(ptr) == 0)
|
||||||
|
SleepEx(1,TRUE);
|
||||||
|
|
||||||
lpStat->cbOutQue = comm_outbuf(ptr);
|
lpStat->cbOutQue = comm_outbuf(ptr);
|
||||||
lpStat->cbInQue = comm_inbuf(ptr);
|
lpStat->cbInQue = comm_inbuf(ptr);
|
||||||
|
|
Loading…
Reference in New Issue