apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r385634 - /apr/apr/branches/0.9.x/file_io/win32/seek.c
Date Mon, 13 Mar 2006 19:37:31 GMT
Author: wrowe
Date: Mon Mar 13 11:37:30 2006
New Revision: 385634

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

  Distinguish rc from rv (DWORD v.s. apr_status_t) - a 64bit-ism.

Backports: 385631

Modified:
    apr/apr/branches/0.9.x/file_io/win32/seek.c

Modified: apr/apr/branches/0.9.x/file_io/win32/seek.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/file_io/win32/seek.c?rev=385634&r1=385633&r2=385634&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/file_io/win32/seek.c (original)
+++ apr/apr/branches/0.9.x/file_io/win32/seek.c Mon Mar 13 11:37:30 2006
@@ -37,17 +37,16 @@
 
     if (newbufpos >= 0 && newbufpos <= thefile->dataRead) {
         thefile->bufpos = (apr_size_t)newbufpos;
-        rc = 0;
+        rv = APR_SUCCESS;
     } else {
         DWORD offlo = (DWORD)pos;
         DWORD offhi = (DWORD)(pos >> 32);
         rc = SetFilePointer(thefile->filehand, offlo, &offhi, FILE_BEGIN);
 
         if (rc == 0xFFFFFFFF)
-            rc = apr_get_os_error();
-        else
-            rc = APR_SUCCESS;
-        if (rc == APR_SUCCESS) {
+            rv = apr_get_os_error();
+        else {
+            rv = APR_SUCCESS;
             thefile->eof_hit = thefile->bufpos = thefile->dataRead = 0;
             thefile->filePtr = pos;
         }



Mime
View raw message