summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/private.c b/private.c
index 5274da9..ecae84a 100644
--- a/private.c
+++ b/private.c
@@ -899,11 +899,11 @@ ptw32_sem_timedwait (sem_t * sem, const struct timespec * abstime)
#ifdef NEED_SEM
- result = (pthreadCancelableTimedWait (sem->event, milliseconds));
+ result = (pthreadCancelableTimedWait ((*sem)->event, milliseconds));
#else /* NEED_SEM */
- result = (pthreadCancelableTimedWait (*sem, milliseconds));
+ result = (pthreadCancelableTimedWait ((*sem)->sem, milliseconds));
#endif