diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2006-03-24 19:27:59 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2006-03-24 19:27:59 +0000 |
commit | e18b22eb065243837ef56355cd0da2bef9bee805 (patch) | |
tree | d39fc300cd52d24b59591a4f1651a589057ff25d /file_io | |
parent | f82bc18252d13feda970b17c797c1c54c5870e92 (diff) | |
download | apr-e18b22eb065243837ef56355cd0da2bef9bee805.tar.gz |
Fix with additional notes for older PSDK winbase.h headers.
Backport 388287
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@388614 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/seek.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/file_io/win32/seek.c b/file_io/win32/seek.c index 41bc28d4d..802e99bcc 100644 --- a/file_io/win32/seek.c +++ b/file_io/win32/seek.c @@ -43,10 +43,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 |