Ignore __pthread_rwlock_unlock call if the pthread functions are not

initialized yet.
This commit is contained in:
Alexandre Julliard 2003-09-25 20:30:18 +00:00
parent 90535ce905
commit 1d2eb37bde
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ strong_alias(__pthread_rwlock_trywrlock, pthread_rwlock_trywrlock);
int __pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
{
assert( funcs.ptr_pthread_rwlock_unlock );
if (!funcs.ptr_pthread_rwlock_unlock) return 0;
return funcs.ptr_pthread_rwlock_unlock( rwlock );
}
strong_alias(__pthread_rwlock_unlock, pthread_rwlock_unlock);