summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-07-03 01:36:53 +0000
committerbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-07-03 01:36:53 +0000
commitfbaf09091c805fc7949d095e1b0d3c1bc79af06d (patch)
tree503bc28fa0dada205f196f723fffc4ccd7916979 /file_io
parentead1720d04560aa437f42066a58fe5f059301398 (diff)
downloadlibapr-fbaf09091c805fc7949d095e1b0d3c1bc79af06d.tar.gz
Fixed bad variable references in apr_file_setaside()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63559 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/filedup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/file_io/win32/filedup.c b/file_io/win32/filedup.c
index 8cfc71e0d..25c8cc6ce 100644
--- a/file_io/win32/filedup.c
+++ b/file_io/win32/filedup.c
@@ -165,10 +165,10 @@ APR_DECLARE(apr_status_t) apr_file_setaside(apr_file_t **new_file,
else {
memcpy((*new_file)->buffer, old_file->buffer, old_file->dataRead);
}
- if (old_file->thlock) {
- apr_thread_mutex_create(&((*new_file)->thlock),
+ if (old_file->mutex) {
+ apr_thread_mutex_create(&((*new_file)->mutex),
APR_THREAD_MUTEX_DEFAULT, p);
- apr_thread_mutex_destroy(old_file->thlock);
+ apr_thread_mutex_destroy(old_file->mutex);
}
}
if (old_file->fname) {
@@ -180,11 +180,11 @@ APR_DECLARE(apr_status_t) apr_file_setaside(apr_file_t **new_file,
file_cleanup);
}
- old_file->filedes = -1;
+ old_file->filehand = INVALID_HANDLE_VALUE;
apr_pool_cleanup_kill(old_file->pool, (void *)old_file,
file_cleanup);
return APR_SUCCESS;
}
#endif
-/* XXX Need to fix the function above... */ \ No newline at end of file
+/* XXX Need to fix the function above... */