wininet: Get rid of no longer used serverName and serverPort from http_session_t.
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index f08ab6d..74c9006 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c
@@ -3086,11 +3086,11 @@ request->session = session; list_add_head( &session->hdr.children, &request->hdr.entry ); - port = session->serverPort; + port = session->hostPort; if(port == INTERNET_INVALID_PORT_NUMBER) port = dwFlags & INTERNET_FLAG_SECURE ? INTERNET_DEFAULT_HTTPS_PORT : INTERNET_DEFAULT_HTTP_PORT; - request->server = get_server(session->serverName, port); + request->server = get_server(session->hostName, port); if(!request->server) { WININET_Release(&request->hdr); return ERROR_OUTOFMEMORY; @@ -5450,7 +5450,6 @@ WININET_Release(&session->appInfo->hdr); heap_free(session->hostName); - heap_free(session->serverName); heap_free(session->password); heap_free(session->userName); } @@ -5602,13 +5601,11 @@ if(hIC->proxyBypass) FIXME("Proxy bypass is ignored.\n"); } - session->serverName = heap_strdupW(lpszServerName); session->hostName = heap_strdupW(lpszServerName); if (lpszUserName && lpszUserName[0]) session->userName = heap_strdupW(lpszUserName); if (lpszPassword && lpszPassword[0]) session->password = heap_strdupW(lpszPassword); - session->serverPort = serverPort; session->hostPort = serverPort; session->connect_timeout = hIC->connect_timeout; session->send_timeout = INFINITE;
diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index fd6b5f7..2e59720 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h
@@ -269,11 +269,9 @@ object_header_t hdr; appinfo_t *appInfo; LPWSTR hostName; /* the final destination of the request */ - LPWSTR serverName; /* the name of the server we directly connect to */ LPWSTR userName; LPWSTR password; INTERNET_PORT hostPort; /* the final destination port of the request */ - INTERNET_PORT serverPort; /* the port of the server we directly connect to */ DWORD connect_timeout; DWORD send_timeout; DWORD receive_timeout;