wininet: Fix variables values after redirection in HTTP_HttpSendRequestW.

Moved dwContentLength reset after HTTP_DrainContent (this function 
disconnects when dwContentLength is set to ~0u).
This commit is contained in:
Piotr Caban 2010-05-20 02:35:38 +02:00 committed by Alexandre Julliard
parent ee5ee5c538
commit 224af0d0e7
1 changed files with 4 additions and 0 deletions

View File

@ -3462,6 +3462,10 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders,
* for all the data */
HTTP_DrainContent(lpwhr);
lpwhr->dwContentRead = 0;
if(redirected) {
lpwhr->dwContentLength = ~0u;
lpwhr->dwBytesToWrite = 0;
}
if (TRACE_ON(wininet))
{