summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2019-05-13 06:29:38 +0000
committerIvan Zhakov <ivan@apache.org>2019-05-13 06:29:38 +0000
commitb89f79a4455e0a7f8abdfca41378f6f439d64a3b (patch)
treeabc0f381e53d787d7d4b3e8fa24cf447ba1ff9ec
parent1b59dcee5f90414e735d8be6c749092aa639d03b (diff)
downloadapr-b89f79a4455e0a7f8abdfca41378f6f439d64a3b.tar.gz
Use API constant instead of magic number.
* threadproc/win32/threadpriv.c (apr_threadkey_private_create): Use TLS_OUT_OF_INDEXES instead of hardcoded 0xFFFFFFFF. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859171 13f79535-47bb-0310-9956-ffa450edef68
-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();