diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-14 22:22:32 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-14 22:22:32 +0000 |
commit | 6d915aab4829e6d292b3e7e70feaee210e5a6155 (patch) | |
tree | aca9d4cfc07167f29fd768a895f45aa73b552843 /file_io | |
parent | 836449a863e50df894b497412575ea0cf0aa23c8 (diff) | |
download | libapr-6d915aab4829e6d292b3e7e70feaee210e5a6155.tar.gz |
Jeff Trawick's seek-bug-fix (fixes and now passes test/filetest.c)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/seek.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/file_io/win32/seek.c b/file_io/win32/seek.c index 326dae066..2ebbc16e7 100644 --- a/file_io/win32/seek.c +++ b/file_io/win32/seek.c @@ -81,8 +81,10 @@ static apr_status_t setptr(apr_file_t *thefile, apr_off_t pos ) rc = apr_get_os_error(); else rc = APR_SUCCESS; - if (rc == APR_SUCCESS) + if (rc == APR_SUCCESS) { thefile->eof_hit = thefile->bufpos = thefile->dataRead = 0; + thefile->filePtr = pos; + } } return rc; |