Jacek Caban : wininet: Use current server in HTTP_GetRedirectURL.
Alexandre Julliard
julliard at winehq.org
Thu Jun 19 14:26:41 CDT 2014
Module: wine
Branch: master
Commit: 153abe0fa7f654a9030915724fafa287e3eb9d40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=153abe0fa7f654a9030915724fafa287e3eb9d40
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Jun 19 15:14:45 2014 +0200
wininet: Use current server in HTTP_GetRedirectURL.
---
dlls/wininet/http.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index bea7308..6c60c3a 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3973,9 +3973,9 @@ static LPWSTR HTTP_GetRedirectURL(http_request_t *request, LPCWSTR lpszUrl)
urlComponents.dwStructSize = sizeof(URL_COMPONENTSW);
urlComponents.lpszScheme = (request->hdr.dwFlags & INTERNET_FLAG_SECURE) ? szHttps : szHttp;
urlComponents.dwSchemeLength = 0;
- urlComponents.lpszHostName = session->hostName;
+ urlComponents.lpszHostName = request->server->name;
urlComponents.dwHostNameLength = 0;
- urlComponents.nPort = session->hostPort;
+ urlComponents.nPort = request->server->port;
urlComponents.lpszUserName = session->userName;
urlComponents.dwUserNameLength = 0;
urlComponents.lpszPassword = NULL;
More information about the wine-cvs
mailing list