From c9697dc5a8283622305ebd6751fa69458680bb4e Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 5 Sep 2018 17:01:01 +0000 Subject: Correct copy-paste flaw (inherited by borrowing from readwrite.c) (r1840147) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1840148 13f79535-47bb-0310-9956-ffa450edef68 --- file_io/win32/buffer.c | 6 +++--- 1 file 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); } -- cgit v1.2.1