summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--threadproc/win32/threadpriv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/win32/threadpriv.c b/threadproc/win32/threadpriv.c
index 787c142c4..1cce0c667 100644
--- a/threadproc/win32/threadpriv.c
+++ b/threadproc/win32/threadpriv.c
@@ -32,7 +32,7 @@ APR_DECLARE(apr_status_t) apr_threadkey_private_create(apr_threadkey_t **key,
(*key)->pool = pool;
- if (((*key)->key = TlsAlloc()) != 0xFFFFFFFF) {
+ if (((*key)->key = TlsAlloc()) != TLS_OUT_OF_INDEXES) {
return APR_SUCCESS;
}
return apr_get_os_error();