From 0f324606564211fe1b10ca54440d6036927dc4b0 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 7 Jul 2006 07:46:40 +0000 Subject: WinCE uses CreateThread(). Hence error is not in 'errno'. --- lib/hostthre.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3