brianp 2002/07/02 18:36:53
Modified: file_io/win32 filedup.c
Log:
Fixed bad variable references in apr_file_setaside()
Revision Changes Path
1.48 +5 -5 apr/file_io/win32/filedup.c
Index: filedup.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filedup.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- filedup.c 3 Jul 2002 00:55:30 -0000 1.47
+++ filedup.c 3 Jul 2002 01:36:53 -0000 1.48
@@ -165,10 +165,10 @@
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 @@
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... */