apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r357641 - /apr/apr/trunk/file_io/win32/readwrite.c
Date Mon, 19 Dec 2005 05:36:44 GMT
Author: wrowe
Date: Sun Dec 18 21:36:39 2005
New Revision: 357641

URL: http://svn.apache.org/viewcvs?rev=357641&view=rev
Log:

  Cast away an emit (we reduced by 10 bits already) and correct
  a typo in the timeout-on-read patch committed last week.

Modified:
    apr/apr/trunk/file_io/win32/readwrite.c

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/win32/readwrite.c?rev=357641&r1=357640&r2=357641&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Sun Dec 18 21:36:39 2005
@@ -321,10 +321,10 @@
                     timeout_ms = INFINITE;
                 }
                 else {
-                    timeout_ms = thefile->timeout / 1000;
+                    timeout_ms = (DWORD)(thefile->timeout / 1000);
                 }
 	       
-                rv = WaitForSingleObject(thefile->pOverlapped->hEvent, timemilliseconds);
+                rv = WaitForSingleObject(thefile->pOverlapped->hEvent, timeout_ms);
                 switch (rv) {
                     case WAIT_OBJECT_0:
                         GetOverlappedResult(thefile->filehand, thefile->pOverlapped,
(LPDWORD)nbytes, TRUE);



Mime
View raw message