summaryrefslogtreecommitdiff
path: root/threadproc/win32/threadpriv.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadproc/win32/threadpriv.c')
-rw-r--r--threadproc/win32/threadpriv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/threadproc/win32/threadpriv.c b/threadproc/win32/threadpriv.c
index a4b5a7711..aa5f06b7e 100644
--- a/threadproc/win32/threadpriv.c
+++ b/threadproc/win32/threadpriv.c
@@ -94,7 +94,7 @@ ap_status_t ap_delete_thread_private(struct threadkey_t *key)
ap_status_t ap_get_threadkeydata(struct threadkey_t *threadkey, char *key, void *data)
{
if (threadkey != NULL) {
- return ap_get_userdata(&data, threadkey->cntxt, key);
+ return ap_get_userdata(&data, key, threadkey->cntxt);
}
else {
data = NULL;
@@ -106,7 +106,7 @@ ap_status_t ap_set_threadkeydata(struct threadkey_t *threadkey, void *data,
char *key, ap_status_t (*cleanup) (void *))
{
if (threadkey != NULL) {
- return ap_set_userdata(threadkey->cntxt, data, key, cleanup);
+ return ap_set_userdata(data, key, cleanup, threadkey->cntxt);
}
else {
data = NULL;