curl_threads.c use WaitForSingleObjectEx on all desktop windows

Ref: 4be80d5109
Ref: https://sourceforge.net/p/curl/feature-requests/82/
Ref: https://learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-waitforsingleobjectex
This commit is contained in:
Viktor Szakats 2025-08-01 22:26:34 +02:00
parent 4f0b6e56c0
commit b6cbd00593
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -161,7 +161,7 @@ void Curl_thread_destroy(curl_thread_t *hnd)
int Curl_thread_join(curl_thread_t *hnd)
{
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < _WIN32_WINNT_VISTA)
#ifdef UNDER_CE
int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0);
#else
int ret = (WaitForSingleObjectEx(*hnd, INFINITE, FALSE) == WAIT_OBJECT_0);