user32: Speed improvement for 16bit comm support.

The previous version of this patch wasn't applied correctly.
This commit is contained in:
Reinhard Karcher 2007-01-01 17:45:06 +01:00 committed by Alexandre Julliard
parent 26f29fdad0
commit 426ae2f2e2
1 changed files with 3 additions and 1 deletions

View File

@ -721,7 +721,9 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
if (lpStat) {
lpStat->status = 0;
SleepEx(1,TRUE);
if (comm_inbuf(ptr) == 0)
SleepEx(1,TRUE);
lpStat->cbOutQue = comm_outbuf(ptr);
lpStat->cbInQue = comm_inbuf(ptr);