stoddard 99/10/08 10:38:24
Modified: src/lib/apr/locks/win32 locks.c
Log:
Fix more misuse of locktype
Revision Changes Path
1.6 +3 -3 apache-2.0/src/lib/apr/locks/win32/locks.c
Index: locks.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/win32/locks.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- locks.c 1999/10/08 17:13:09 1.5
+++ locks.c 1999/10/08 17:38:24 1.6
@@ -122,7 +122,7 @@
ap_status_t ap_lock(struct lock_t *lock)
{
DWORD rv;
- if (lock->type == APR_INTRAPROCESS) {
+ if (lock->scope == APR_INTRAPROCESS) {
EnterCriticalSection(&lock->section);
return APR_SUCCESS;
} else {
@@ -140,7 +140,7 @@
ap_status_t ap_unlock(struct lock_t *lock)
{
- if (lock->type == APR_INTRAPROCESS) {
+ if (lock->scope == APR_INTRAPROCESS) {
LeaveCriticalSection(&lock->section);
return APR_SUCCESS;
} else {
@@ -153,7 +153,7 @@
ap_status_t ap_destroy_lock(struct lock_t *lock)
{
- if (lock->type == APR_INTRAPROCESS) {
+ if (lock->scope == APR_INTRAPROCESS) {
DeleteCriticalSection(&lock->section);
return APR_SUCCESS;
} else {