From 52580a5b3663a23bf107a65617a3fad8233f0524 Mon Sep 17 00:00:00 2001 From: wrowe Date: Fri, 13 Jan 2006 01:54:01 +0000 Subject: _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 --- threadproc/win32/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'threadproc') 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); -- cgit v1.2.1