Module: wine Branch: master Commit: 426ae2f2e29f2cdb0e4bbee0cef9b93e0f243425 URL: http://source.winehq.org/git/wine.git/?a=commit;h=426ae2f2e29f2cdb0e4bbee0ce...
Author: Reinhard Karcher rkarcher@frey.de Date: Mon Jan 1 17:45:06 2007 +0100
user32: Speed improvement for 16bit comm support.
The previous version of this patch wasn't applied correctly.
---
dlls/user32/comm16.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/comm16.c b/dlls/user32/comm16.c index 0164196..ebeb97c 100644 --- a/dlls/user32/comm16.c +++ b/dlls/user32/comm16.c @@ -721,7 +721,9 @@ INT16 WINAPI GetCommError16(INT16 cid,LP
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);