curl_threads: delete WinCE fallback branch

Both WinCE and Windows use `CreateThread()` now, so the use of
`GetLastError()` works for both.

Follow-up to 03448f477a #18998
Follow-up to 1c49f2f26d #18451
Follow-up to af0216251b #1589

Closes #19015
This commit is contained in:
Viktor Szakats 2025-10-11 00:11:16 +02:00
parent f04e7a7efa
commit 16f0d4ae3a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -107,16 +107,12 @@ curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
{
curl_thread_t t = CreateThread(NULL, 0, func, arg, 0, NULL);
if(!t) {
#ifndef UNDER_CE
DWORD gle = GetLastError();
/* !checksrc! disable ERRNOVAR 1 */
int err = (gle == ERROR_ACCESS_DENIED ||
gle == ERROR_NOT_ENOUGH_MEMORY) ?
EACCES : EINVAL;
CURL_SETERRNO(err);
#else
CURL_SETERRNO(31); /* Windows ERROR_GEN_FAILURE */
#endif
return curl_thread_t_null;
}
return t;