summaryrefslogtreecommitdiff
path: root/pthread_getw32threadhandle_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_getw32threadhandle_np.c')
-rw-r--r--pthread_getw32threadhandle_np.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_getw32threadhandle_np.c b/pthread_getw32threadhandle_np.c
index fcf1288..9ac81a7 100644
--- a/pthread_getw32threadhandle_np.c
+++ b/pthread_getw32threadhandle_np.c
@@ -49,5 +49,5 @@
HANDLE
pthread_getw32threadhandle_np (pthread_t thread)
{
- return (thread != NULL) ? (thread->threadH) : 0;
+ return ((ptw32_thread_t *)thread.p)->threadH;
}