Module: wine Branch: master Commit: 224af0d0e7a936e9a88b8124e98a9a2ae6a56ebf URL: http://source.winehq.org/git/wine.git/?a=commit;h=224af0d0e7a936e9a88b8124e9...
Author: Piotr Caban piotr@codeweavers.com Date: Thu May 20 02:35:38 2010 +0200
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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index dc6533b..ac0edea 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)) {