]> git.sur5r.net Git - openldap/commitdiff
ITS#6625 Invert test in NT threads LDAP_INT_MUTEX_FIRSTCREATE
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 6 Dec 2010 10:48:29 +0000 (10:48 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 6 Dec 2010 10:48:29 +0000 (10:48 +0000)
include/ldap_int_thread.h

index 531b502eeb13788a5c61d3ebb9410a0424b8d2bd..c2c75c758ef8ab504e2c02d0e318e76f5eadf5a3 100644 (file)
@@ -183,7 +183,7 @@ typedef DWORD       ldap_int_thread_key_t;
 #ifndef LDAP_INT_MUTEX_NULL
 #define LDAP_INT_MUTEX_NULL            ((HANDLE)0)
 #define LDAP_INT_MUTEX_FIRSTCREATE(m) \
-               ((void) ((m) && ldap_int_thread_mutex_init(&(m))))
+               ((void) ((m) || ldap_int_thread_mutex_init(&(m))))
 #endif
 
 LDAP_END_DECL