From 548fc29a8cc3fd016eba997facc9566af8fd2d75 Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 13 Sep 2000 01:21:11 +0000 Subject: 2000-09-13 Ross Johnson * mutex.c (pthread_mutex_init): Call TryEnterCriticalSection through the pointer rather than directly so that the dll can load on Windows versions that can't resolve the function, eg. Windows 95 - "Jef Gearhart" --- mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mutex.c') diff --git a/mutex.c b/mutex.c index 8da2891..091c61e 100644 --- a/mutex.c +++ b/mutex.c @@ -153,7 +153,7 @@ pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) * Check that it works ok - since InitializeCriticalSection doesn't * return success or failure. */ - if (TryEnterCriticalSection(&mx->cs)) + if ((*ptw32_try_enter_critical_section)(&mx->cs)) { LeaveCriticalSection(&mx->cs); } -- cgit v1.2.3