From c044b2a667a23af8ed0a2469b73b18324f7427b8 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 11 Mar 2000 00:58:10 +0000 Subject: [PATCH] Remove race condition noted in ITS#216. --- libraries/libldap_r/thr_nt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap_r/thr_nt.c b/libraries/libldap_r/thr_nt.c index 20cca306ea..d3d41ff3c6 100644 --- a/libraries/libldap_r/thr_nt.c +++ b/libraries/libldap_r/thr_nt.c @@ -96,7 +96,7 @@ ldap_pvt_thread_cond_wait( ldap_pvt_thread_cond_t *cond, ldap_pvt_thread_mutex_t *mutex ) { ReleaseMutex( *mutex ); - WaitForSingleObject( *cond, INFINITE ); + SignalObjectAndWait( *mutex, *cond, INFINITE, FALSE ); WaitForSingleObject( *mutex, INFINITE ); return( 0 ); } -- 2.39.5