Reinhard Karcher : user32: Speed improvement for 16bit comm support.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 4 04:44:58 CST 2007


Module: wine
Branch: master
Commit: 426ae2f2e29f2cdb0e4bbee0cef9b93e0f243425
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=426ae2f2e29f2cdb0e4bbee0cef9b93e0f243425

Author: Reinhard Karcher <rkarcher at 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);




More information about the wine-cvs mailing list