apply Jay's fix

This commit is contained in:
Viktor Szakats 2025-09-07 17:13:30 +02:00
parent 4feb0954e0
commit 8246a0a113
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -130,7 +130,7 @@ curl_thread_t Curl_thread_create(CURL_THREAD_RETURN_T
(CURL_STDCALL *func) (void *), void *arg)
{
curl_thread_t t = CreateThread(NULL, 0, func, arg, 0, NULL);
if((t == 0) || (t == LongToHandle(-1L))) {
if(!t) {
#ifdef UNDER_CE
DWORD gle = GetLastError();
/* !checksrc! disable ERRNOVAR 1 */