mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
curl_threads: delete WinCE fallback branch
Both WinCE and Windows use `CreateThread()` now, so the use of `GetLastError()` works for both. Follow-up to03448f477a#18998 Follow-up to1c49f2f26d#18451 Follow-up toaf0216251b#1589 Closes #19015
This commit is contained in:
parent
f04e7a7efa
commit
16f0d4ae3a
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue