From: Gisle Vanem Date: Fri, 7 Jul 2006 07:49:16 +0000 (+0000) Subject: Correct the trace for WinCE. X-Git-Tag: curl-7_15_5~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=725f734bae7d94031d5a0d28e258aa1104bc3e20;p=thirdparty%2Fcurl.git Correct the trace for WinCE. --- diff --git a/lib/hostthre.c b/lib/hostthre.c index a211056955..f55abb6905 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -542,10 +542,12 @@ static bool init_resolve_thread (struct connectdata *conn, #endif if (!td->thread_hnd) { -#ifndef _WIN32_WCE +#ifdef _WIN32_WCE + TRACE(("CreateThread() failed; %s\n", Curl_strerror(conn,GetLastError()))); +#else SetLastError(errno); -#endif TRACE(("_beginthreadex() failed; %s\n", Curl_strerror(conn,errno))); +#endif Curl_destroy_thread_data(&conn->async); return FALSE; }