diff options
Diffstat (limited to 'locks/netware/proc_mutex.c')
-rw-r--r-- | locks/netware/proc_mutex.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/locks/netware/proc_mutex.c b/locks/netware/proc_mutex.c index c36488828..b07116459 100644 --- a/locks/netware/proc_mutex.c +++ b/locks/netware/proc_mutex.c @@ -116,9 +116,9 @@ APR_DECLARE(apr_status_t) apr_os_proc_mutex_get_ex(apr_os_proc_mutex_t *ospmutex apr_proc_mutex_t *pmutex, apr_lockmech_e *mech) { - if (!pmutex->mutex) { - return APR_ENOLOCK; - } + if (pmutex && pmutex->mutex) + ospmutex = pmutex->mutex->mutex; + return APR_ENOLOCK; #if 0 /* We need to change apr_os_proc_mutex_t to a pointer type * to be able to implement this function. @@ -127,12 +127,8 @@ APR_DECLARE(apr_status_t) apr_os_proc_mutex_get_ex(apr_os_proc_mutex_t *ospmutex if (mech) { *mech = APR_LOCK_DEFAULT; } -#else - if (mech) { - *mech = APR_LOCK_DEFAULT; - } -#endif return APR_SUCCESS; +#endif } APR_DECLARE(apr_status_t) apr_os_proc_mutex_get(apr_os_proc_mutex_t *ospmutex, |