summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
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);
}