mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-14 16:01:46 +00:00
Merge remote-tracking branch 'yquake2/master'
This commit is contained in:
commit
8f0906704a
1 changed files with 8 additions and 1 deletions
|
@ -81,7 +81,7 @@ static size_t CL_HTTP_Recv(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
|
|
||||||
if (!dl->fileSize)
|
if (!dl->fileSize)
|
||||||
{
|
{
|
||||||
double length = 0;
|
curl_off_t length = 0;
|
||||||
|
|
||||||
qcurl_easy_getinfo(dl->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &length);
|
qcurl_easy_getinfo(dl->curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &length);
|
||||||
|
|
||||||
|
@ -264,6 +264,9 @@ static void CL_StartHTTPDownload (dlqueue_t *entry, dlhandle_t *dl)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure that the download handle is in empty state.
|
// Make sure that the download handle is in empty state.
|
||||||
|
if (dl->tempBuffer) {
|
||||||
|
free(dl->tempBuffer);
|
||||||
|
}
|
||||||
dl->tempBuffer = NULL;
|
dl->tempBuffer = NULL;
|
||||||
dl->fileSize = 0;
|
dl->fileSize = 0;
|
||||||
dl->position = 0;
|
dl->position = 0;
|
||||||
|
@ -477,6 +480,10 @@ static void CL_ParseFileList(dlhandle_t *dl)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!dl->tempBuffer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
char *list = dl->tempBuffer;
|
char *list = dl->tempBuffer;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
|
Loading…
Reference in a new issue