mirror of
https://github.com/reactos/wine.git
synced 2025-02-17 03:18:32 +00:00
wininet: Port numbers are unsigned.
This commit is contained in:
parent
1bf001cf0b
commit
1a39e29c3b
@ -1437,8 +1437,8 @@ static WCHAR *HTTP_BuildProxyRequestUrl(http_request_t *req)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
static const WCHAR slash[] = { '/',0 };
|
static const WCHAR slash[] = { '/',0 };
|
||||||
static const WCHAR format[] = { 'h','t','t','p',':','/','/','%','s',':','%','d',0 };
|
static const WCHAR format[] = { 'h','t','t','p',':','/','/','%','s',':','%','u',0 };
|
||||||
static const WCHAR formatSSL[] = { 'h','t','t','p','s',':','/','/','%','s',':','%','d',0 };
|
static const WCHAR formatSSL[] = { 'h','t','t','p','s',':','/','/','%','s',':','%','u',0 };
|
||||||
http_session_t *session = req->session;
|
http_session_t *session = req->session;
|
||||||
|
|
||||||
size = 16; /* "https://" + sizeof(port#) + ":/\0" */
|
size = 16; /* "https://" + sizeof(port#) + ":/\0" */
|
||||||
@ -3424,7 +3424,7 @@ static DWORD HTTP_HandleRedirect(http_request_t *request, LPCWSTR lpszUrl)
|
|||||||
urlComponents.nPort != INTERNET_DEFAULT_HTTPS_PORT)
|
urlComponents.nPort != INTERNET_DEFAULT_HTTPS_PORT)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
static const WCHAR fmt[] = {'%','s',':','%','i',0};
|
static const WCHAR fmt[] = {'%','s',':','%','u',0};
|
||||||
len = lstrlenW(hostName);
|
len = lstrlenW(hostName);
|
||||||
len += 7; /* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
|
len += 7; /* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
|
||||||
session->hostName = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
|
session->hostName = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
|
||||||
@ -3530,7 +3530,7 @@ static DWORD HTTP_SecureProxyConnect(http_request_t *request)
|
|||||||
char *ascii_req;
|
char *ascii_req;
|
||||||
DWORD res;
|
DWORD res;
|
||||||
static const WCHAR szConnect[] = {'C','O','N','N','E','C','T',0};
|
static const WCHAR szConnect[] = {'C','O','N','N','E','C','T',0};
|
||||||
static const WCHAR szFormat[] = {'%','s',':','%','d',0};
|
static const WCHAR szFormat[] = {'%','s',':','%','u',0};
|
||||||
http_session_t *session = request->session;
|
http_session_t *session = request->session;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user