From 224af0d0e7a936e9a88b8124e98a9a2ae6a56ebf Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 20 May 2010 02:35:38 +0200 Subject: [PATCH] wininet: Fix variables values after redirection in HTTP_HttpSendRequestW. Moved dwContentLength reset after HTTP_DrainContent (this function disconnects when dwContentLength is set to ~0u). --- dlls/wininet/http.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index dc6533ba620..ac0edeacc3f 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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)) { -- 2.11.4.GIT