aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-07 07:46:40 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-07 07:46:40 +0000
commit0f324606564211fe1b10ca54440d6036927dc4b0 (patch)
treef3e1283874fd4cb440852818f2b9eea568ced74d /lib
parent25180cc8501d32f9ab21fdb78ad8910dc40c275a (diff)
WinCE uses CreateThread(). Hence error is not in 'errno'.
Diffstat (limited to 'lib')
-rw-r--r--lib/hostthre.c2
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;