Merge pull request #977 from devnexen/curl_client_type_fix

CURL client fix on error with CURLMcode.
This commit is contained in:
Yamagi 2023-03-11 20:40:13 +01:00 committed by GitHub
commit 6faa03a59d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -1206,7 +1206,7 @@ void CL_RunHTTPDownloads(void)
// Somethings gone very wrong.
if (ret != CURLM_OK)
{
Com_Printf("HTTP download: cURL error - %s\n", qcurl_easy_strerror(ret));
Com_Printf("HTTP download: cURL error - %s\n", qcurl_multi_strerror(ret));
CL_CancelHTTPDownloads(true);
}

View file

@ -55,6 +55,7 @@ extern CURLMsg *(*qcurl_multi_info_read)(CURLM *multi_handle, int *msgs_in_queue
extern CURLM *(*qcurl_multi_init)(void);
extern CURLMcode (*qcurl_multi_perform)(CURLM *multi_handle, int *running_handles);
extern CURLMcode (*qcurl_multi_remove_handle)(CURLM *multi_handle, CURL *curl_handle);
extern const char *(*qcurl_multi_strerror)(CURLMcode);
// --------

View file

@ -60,6 +60,7 @@ CURLMsg *(*qcurl_multi_info_read)(CURLM *multi_handle, int *msgs_in_queue);
CURLM *(*qcurl_multi_init)(void);
CURLMcode (*qcurl_multi_perform)(CURLM *multi_handle, int *running_handles);
CURLMcode (*qcurl_multi_remove_handle)(CURLM *multi_handle, CURL *curl_handle);
const char *(*qcurl_multi_strerror)(CURLMcode);
// --------
@ -160,6 +161,7 @@ qboolean qcurlInit(void)
CONCURL(qcurl_multi_init, "curl_multi_init");
CONCURL(qcurl_multi_perform, "curl_multi_perform");
CONCURL(qcurl_multi_remove_handle, "curl_multi_remove_handle");
CONCURL(qcurl_multi_strerror, "curl_multi_strerror");
#undef CONCURL