diff --git a/lib/hostthre.c b/lib/hostthre.c index a2110569552e08c275ec1b2fd40b5aec78f2aaa9..f55abb69054ed8e2e1c87aaa9450fbd1d4d7472a 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; }