diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2006-01-13 01:54:01 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2006-01-13 01:54:01 +0000 |
commit | 52580a5b3663a23bf107a65617a3fad8233f0524 (patch) | |
tree | 628fba559da542b2337969c5ee4da4788b224f24 /threadproc/win32/thread.c | |
parent | db083286a7b4bdc837756b6ae8cef77d2ddd341d (diff) | |
download | libapr-52580a5b3663a23bf107a65617a3fad8233f0524.tar.gz |
_beginthreadex() expects no bigger than a DWORD sized stack.
Noop in 32 bit, error in 64 bit builds.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@368551 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/thread.c')
-rw-r--r-- | threadproc/win32/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c index 33e9afcde..09c53c3eb 100644 --- a/threadproc/win32/thread.c +++ b/threadproc/win32/thread.c @@ -108,7 +108,7 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new, */ #ifndef _WIN32_WCE if ((handle = (HANDLE)_beginthreadex(NULL, - attr && attr->stacksize > 0 ? attr->stacksize : 0, + (DWORD) (attr ? attr->stacksize : 0), (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker, (*new), 0, &temp)) == 0) { return APR_FROM_OS_ERROR(_doserrno); |