diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2018-09-05 17:01:01 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2018-09-05 17:01:01 +0000 |
commit | d40bb7c51734e79055be0f1fd5c11cc70e8e5ebc (patch) | |
tree | 6b0023403b010301bc2ec71d003b5331d111e6fc | |
parent | 2d2ddce092a240040ea5553daae558e9cb13df2b (diff) | |
download | libapr-d40bb7c51734e79055be0f1fd5c11cc70e8e5ebc.tar.gz |
Correct copy-paste flaw (inherited by borrowing from readwrite.c) (r1840147)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1840148 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/win32/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/file_io/win32/buffer.c b/file_io/win32/buffer.c index a32016255..7f5d9d375 100644 --- a/file_io/win32/buffer.c +++ b/file_io/win32/buffer.c @@ -23,7 +23,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, { apr_status_t rv; - if (thefile->flags & APR_FOPEN_XTHREAD) { + if (file->flags & APR_FOPEN_XTHREAD) { apr_thread_mutex_lock(file->mutex); } @@ -31,7 +31,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, /* Flush the existing buffer */ rv = apr_file_flush(file); if (rv != APR_SUCCESS) { - if (thefile->flags & APR_FOPEN_XTHREAD) { + if (file->flags & APR_FOPEN_XTHREAD) { apr_thread_mutex_unlock(file->mutex); } return rv; @@ -52,7 +52,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, file->buffered = 0; } - if (thefile->flags & APR_FOPEN_XTHREAD) { + if (file->flags & APR_FOPEN_XTHREAD) { apr_thread_mutex_unlock(file->mutex); } |