You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/23 20:02:56 UTC
svn commit: r587576 - /apr/apr/branches/1.2.x/threadproc/win32/thread.c
Author: wrowe
Date: Tue Oct 23 11:02:55 2007
New Revision: 587576
URL: http://svn.apache.org/viewvc?rev=587576&view=rev
Log:
Testing attr->stacksize > 0 was redundant and this
must be truncated to a DWORD, backport from trunk.
Modified:
apr/apr/branches/1.2.x/threadproc/win32/thread.c
Modified: apr/apr/branches/1.2.x/threadproc/win32/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/threadproc/win32/thread.c?rev=587576&r1=587575&r2=587576&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/threadproc/win32/thread.c (original)
+++ apr/apr/branches/1.2.x/threadproc/win32/thread.c Tue Oct 23 11:02:55 2007
@@ -108,7 +108,7 @@
*/
#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);