lib: fix thread entry point to return DWORD on WinCE

We already do this in `tests/server/util.c`:
97e5e37cc8/tests/server/util.c (L604-L606)
and in `sockfilt.c`, `lib3026.c`.

Before this patch it returned `unsigned int`.

Closes #13877
This commit is contained in:
Viktor Szakats 2024-06-04 02:41:26 +02:00
parent 3392f0f97e
commit 83384669ef
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 28 additions and 6 deletions

View file

@ -100,8 +100,13 @@ int Curl_thread_join(curl_thread_t *hnd)
#elif defined(USE_THREADS_WIN32)
/* !checksrc! disable SPACEBEFOREPAREN 1 */
curl_thread_t Curl_thread_create(unsigned int (CURL_STDCALL *func) (void *),
curl_thread_t Curl_thread_create(
#if defined(_WIN32_WCE)
DWORD
#else
unsigned int
#endif
(CURL_STDCALL *func) (void *),
void *arg)
{
#ifdef _WIN32_WCE