Commit 426ae2f2 authored by Reinhard Karcher's avatar Reinhard Karcher Committed by Alexandre Julliard

user32: Speed improvement for 16bit comm support.

The previous version of this patch wasn't applied correctly.
parent 26f29fda
...@@ -721,6 +721,8 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat) ...@@ -721,6 +721,8 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat)
if (lpStat) { if (lpStat) {
lpStat->status = 0; lpStat->status = 0;
if (comm_inbuf(ptr) == 0)
SleepEx(1,TRUE); SleepEx(1,TRUE);
lpStat->cbOutQue = comm_outbuf(ptr); lpStat->cbOutQue = comm_outbuf(ptr);
......
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