summaryrefslogtreecommitdiff
path: root/pthread_getschedparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_getschedparam.c')
-rw-r--r--pthread_getschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_getschedparam.c b/pthread_getschedparam.c
index d968aa5..edeb5b4 100644
--- a/pthread_getschedparam.c
+++ b/pthread_getschedparam.c
@@ -69,7 +69,7 @@ pthread_getschedparam (pthread_t thread, int *policy,
* for the target thread. It must not return the actual thread
* priority as altered by any system priority adjustments etc.
*/
- param->sched_priority = thread->sched_priority;
+ param->sched_priority = ((ptw32_thread_t *)thread.p)->sched_priority;
return 0;
}