From: Gisle Vanem Date: Fri, 7 Jul 2006 07:46:40 +0000 (+0000) Subject: WinCE uses CreateThread(). Hence error is not in 'errno'. X-Git-Tag: curl-7_15_5~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f324606564211fe1b10ca54440d6036927dc4b0;p=curl WinCE uses CreateThread(). Hence error is not in 'errno'. --- diff --git a/lib/hostthre.c b/lib/hostthre.c index 4fb172c42..a21105695 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -542,7 +542,9 @@ static bool init_resolve_thread (struct connectdata *conn, #endif if (!td->thread_hnd) { +#ifndef _WIN32_WCE SetLastError(errno); +#endif TRACE(("_beginthreadex() failed; %s\n", Curl_strerror(conn,errno))); Curl_destroy_thread_data(&conn->async); return FALSE;