diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostthre.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |