summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-03-23 22:47:12 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2006-03-23 22:47:12 +0000
commit22bda5dffc0f2135a78f6ec0b00bc86b89a9cc01 (patch)
tree62c49e8a89533748c6dec33f8f97fba22535f80c
parent79074f7a3a600edf2159b869690324b0028219f9 (diff)
downloadlibapr-22bda5dffc0f2135a78f6ec0b00bc86b89a9cc01.tar.gz
Fix with additional notes for older PSDK winbase.h headers.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@388287 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--file_io/win32/seek.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/file_io/win32/seek.c b/file_io/win32/seek.c
index e4e3608d6..dc25037c6 100644
--- a/file_io/win32/seek.c
+++ b/file_io/win32/seek.c
@@ -48,10 +48,11 @@ static apr_status_t setptr(apr_file_t *thefile, apr_off_t pos )
DWORD offhi = (DWORD)(pos >> 32);
rc = SetFilePointer(thefile->filehand, offlo, &offhi, FILE_BEGIN);
- if (rc == INVALID_SET_FILE_POINTER)
- /* A legal value, perhaps? MSDN implies prior SetLastError isn't
+ if (rc == (DWORD)-1)
+ /* A legal value, perhaps? MSDN implies prior SetLastError isn't
* needed, googling for SetLastError SetFilePointer seems
- * to confirm this.
+ * to confirm this. INVALID_SET_FILE_POINTER is too recently
+ * added for us to rely on it as a constant.
*/
rv = apr_get_os_error();
else