mirror of
https://github.com/curl/curl.git
synced 2026-07-30 07:39:13 +03:00
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:
parent
4f0b6e56c0
commit
b6cbd00593
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue