wininet: Properly drain content for chunked transfers.
This commit is contained in:
parent
11faf8a53a
commit
8f1a3e4e1f
|
@ -2148,7 +2148,7 @@ static void HTTP_DrainContent(WININETHTTPREQW *req)
|
|||
do
|
||||
{
|
||||
char buffer[2048];
|
||||
if (HTTP_Read(req, buffer, sizeof(buffer), &bytes_read, TRUE) != ERROR_SUCCESS)
|
||||
if (HTTPREQ_Read(req, buffer, sizeof(buffer), &bytes_read, TRUE) != ERROR_SUCCESS)
|
||||
return;
|
||||
} while (bytes_read);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue