summaryrefslogtreecommitdiff
path: root/lib/hostthre.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-07 07:49:16 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-07 07:49:16 +0000
commit725f734bae7d94031d5a0d28e258aa1104bc3e20 (patch)
tree7f996cf056dc94f1be744aef166477b93a59acff /lib/hostthre.c
parent0f324606564211fe1b10ca54440d6036927dc4b0 (diff)
downloadcurl-725f734bae7d94031d5a0d28e258aa1104bc3e20.tar.gz
Correct the trace for WinCE.
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r--lib/hostthre.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index a21105695..f55abb690 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;
}