WinCE uses CreateThread(). Hence error is not in 'errno'.

This commit is contained in:
Gisle Vanem 2006-07-07 07:46:40 +00:00
parent 25180cc850
commit 0f32460656

View File

@ -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;