Skip to content

Commit

Permalink
Fix with additional notes for older PSDK winbase.h headers.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388287 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Mar 23, 2006
1 parent 3b4edd0 commit 3c4201e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions file_io/win32/seek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c4201e

Please sign in to comment.