diff options
Diffstat (limited to 'file_io/win32/seek.c')
-rw-r--r-- | file_io/win32/seek.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/win32/seek.c b/file_io/win32/seek.c index be5bac932..03cee4ed1 100644 --- a/file_io/win32/seek.c +++ b/file_io/win32/seek.c @@ -105,8 +105,8 @@ APR_DECLARE(apr_status_t) apr_file_seek(apr_file_t *thefile, apr_seek_where_t wh case APR_END: rc = apr_file_info_get(&finfo, APR_FINFO_SIZE, thefile); - if (rc == APR_SUCCESS && finfo.size - *offset < 0) - thefile->filePtr = finfo.size - *offset; + if (rc == APR_SUCCESS && finfo.size + *offset >= 0) + thefile->filePtr = finfo.size + *offset; break; default: |