Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a9b405cf
Commit
a9b405cf
authored
Jun 01, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix proxy support, remove typecasts.
parent
0f939fc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
dialogs.c
dlls/wininet/dialogs.c
+8
-4
http.c
dlls/wininet/http.c
+1
-1
internet.c
dlls/wininet/internet.c
+9
-9
No files found.
dlls/wininet/dialogs.c
View file @
a9b405cf
...
...
@@ -58,11 +58,12 @@ struct WININET_ErrorDlgParams
*/
static
BOOL
WININET_GetProxyServer
(
HINTERNET
hRequest
,
LPWSTR
szBuf
,
DWORD
sz
)
{
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
hRequest
;
LPWININETHTTPREQW
lpwhr
;
LPWININETHTTPSESSIONW
lpwhs
=
NULL
;
LPWININETAPPINFOW
hIC
=
NULL
;
LPWSTR
p
;
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hRequest
);
if
(
NULL
==
lpwhr
)
return
FALSE
;
...
...
@@ -195,11 +196,15 @@ static BOOL WININET_GetSetPassword( HWND hdlg, LPCWSTR szServer,
static
BOOL
WININET_SetProxyAuthorization
(
HINTERNET
hRequest
,
LPWSTR
username
,
LPWSTR
password
)
{
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
hRequest
;
LPWININETHTTPREQW
lpwhr
;
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETAPPINFOW
hIC
;
LPWSTR
p
;
lpwhr
=
(
LPWININETHTTPREQW
)
WININET_GetObject
(
hRequest
);
if
(
!
lpwhr
)
return
FALSE
;
lpwhs
=
(
LPWININETHTTPSESSIONW
)
lpwhr
->
hdr
.
lpwhparent
;
if
(
NULL
==
lpwhs
||
lpwhs
->
hdr
.
htype
!=
WH_HHTTPSESSION
)
{
...
...
@@ -273,7 +278,6 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
case
WM_COMMAND
:
if
(
wParam
==
IDOK
)
{
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
params
->
hRequest
;
WCHAR
username
[
0x20
],
password
[
0x20
];
username
[
0
]
=
0
;
...
...
@@ -296,7 +300,7 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
{
WININET_GetSetPassword
(
hdlg
,
szServer
,
szRealm
,
TRUE
);
}
WININET_SetProxyAuthorization
(
lpwhr
,
username
,
password
);
WININET_SetProxyAuthorization
(
params
->
hRequest
,
username
,
password
);
EndDialog
(
hdlg
,
ERROR_INTERNET_FORCE_RETRY
);
return
TRUE
;
...
...
dlls/wininet/http.c
View file @
a9b405cf
...
...
@@ -540,7 +540,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
static
const
WCHAR
szNul
[]
=
{
0
};
URL_COMPONENTSW
UrlComponents
;
static
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
0
},
szSlash
[]
=
{
'/'
,
0
}
;
static
const
WCHAR
szFormat1
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
szFormat1
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
0
};
static
const
WCHAR
szFormat2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
':'
,
'%'
,
'd'
,
0
};
int
len
;
...
...
dlls/wininet/internet.c
View file @
a9b405cf
...
...
@@ -1172,10 +1172,10 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
* <protocol>:[//<net_loc>][/path][;<params>][?<query>][#<fragment>]
*
*/
LPWSTR
lpszParam
=
NULL
;
LP
C
WSTR
lpszParam
=
NULL
;
BOOL
bIsAbsolute
=
FALSE
;
LP
WSTR
lpszap
=
(
WCHAR
*
)
lpszUrl
;
LPWSTR
lpszcp
=
NULL
;
LP
CWSTR
lpszap
=
lpszUrl
;
LP
C
WSTR
lpszcp
=
NULL
;
const
WCHAR
lpszSeparators
[
3
]
=
{
';'
,
'?'
,
0
};
const
WCHAR
lpszSlash
[
2
]
=
{
'/'
,
0
};
if
(
dwUrlLength
==
0
)
...
...
@@ -1198,7 +1198,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
}
else
{
lpszcp
=
(
LPWSTR
)
lpszUrl
;
/* Relative url */
lpszcp
=
lpszUrl
;
/* Relative url */
}
break
;
...
...
@@ -1217,7 +1217,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
if
(
bIsAbsolute
)
/* Parse <protocol>:[//<net_loc>] */
{
LPWSTR
lpszNetLoc
;
LP
C
WSTR
lpszNetLoc
;
static
const
WCHAR
wszAbout
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
0
};
/* Get scheme first. */
...
...
@@ -1265,8 +1265,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
/* Parse net-loc */
if
(
lpszNetLoc
)
{
LPWSTR
lpszHost
;
LPWSTR
lpszPort
;
LP
C
WSTR
lpszHost
;
LP
C
WSTR
lpszPort
;
/* [<user>[<:password>]@]<host>[:<port>] */
/* First find the user and password if they exist */
...
...
@@ -1280,8 +1280,8 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
}
else
/* Parse out username and password */
{
LPWSTR
lpszUser
=
lpszcp
;
LPWSTR
lpszPasswd
=
lpszHost
;
LP
C
WSTR
lpszUser
=
lpszcp
;
LP
C
WSTR
lpszPasswd
=
lpszHost
;
while
(
lpszcp
<
lpszHost
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment