cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Windows CE (1/1) (1/1)

From: Paul Nolan <paul_at_idruna.com>
Date: Wed, 3 Nov 2004 00:46 +0000 (Pacific Standard Time)

I noticed one more change when compiling the daily build with EVC3 vs EVC4
(EVC3 is needed for Pocket PC 2002 support, EVC4 for 2003 support),
hostthre.c now calls DuplicateHandle which is implemented in Win CE 4.2
(Pocket PC 2003), but not 3.0 (Pocket PC 2002). Not entirely sure is
duplicatehandle=handle is kosher, but it seems to work, not sure if it
might fail under different conditions though? Let me know what you think
of the change below, or if there is another solution possible which
eliminates the DuplicateHandle call.

hosthre.c line 183

#if defined(_WIN32_WCE) && _WIN32_WCE<420

  mutex_waiting=td->mutex_waiting;

#else
  if (!DuplicateHandle(GetCurrentProcess(), td->mutex_waiting,
            
           GetCurrentProcess(), &mutex_waiting, 0, FALSE,
                 
      DUPLICATE_SAME_ACCESS)) {
    /* failed to duplicate the mutex, no
point in continuing */
    return 0;
  }
#endif

Thanks,

Paul Nolan, CEO Idruna Software Inc.
http://www.idruna.com
Received on 2004-11-03