apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r368551 - /apr/apr/trunk/threadproc/win32/thread.c
Date Fri, 13 Jan 2006 01:54:05 GMT
Author: wrowe
Date: Thu Jan 12 17:54:01 2006
New Revision: 368551

URL: http://svn.apache.org/viewcvs?rev=368551&view=rev
Log:

  _beginthreadex() expects no bigger than a DWORD sized stack.
  Noop in 32 bit, error in 64 bit builds.

Modified:
    apr/apr/trunk/threadproc/win32/thread.c

Modified: apr/apr/trunk/threadproc/win32/thread.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/threadproc/win32/thread.c?rev=368551&r1=368550&r2=368551&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/win32/thread.c (original)
+++ apr/apr/trunk/threadproc/win32/thread.c Thu Jan 12 17:54:01 2006
@@ -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);



Mime
View raw message