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
781f3f78
Commit
781f3f78
authored
Oct 13, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Cast-qual warnings fix.
parent
9a86eacd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
http.c
dlls/wininet/http.c
+10
-11
No files found.
dlls/wininet/http.c
View file @
781f3f78
...
...
@@ -915,7 +915,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
WCHAR
buf
[
MAXHOSTNAME
];
WCHAR
proxy
[
MAXHOSTNAME
+
15
];
/* 15 == "http://" + sizeof(port#) + ":/\0" */
WCHAR
*
url
;
static
const
WCHAR
szNul
[]
=
{
0
};
static
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'
,
0
};
...
...
@@ -938,7 +938,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
return
FALSE
;
if
(
!
lpwhr
->
lpszPath
)
lpwhr
->
lpszPath
=
(
LPWSTR
)
szNul
;
lpwhr
->
lpszPath
=
szNul
;
TRACE
(
"server='%s' path='%s'
\n
"
,
debugstr_w
(
lpwhs
->
lpszHostName
),
debugstr_w
(
lpwhr
->
lpszPath
));
/* for constant 15 see above */
...
...
@@ -1689,6 +1689,7 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
INTERNET_BUFFERSW
BuffersInW
;
BOOL
rc
=
FALSE
;
DWORD
headerlen
;
LPWSTR
header
=
NULL
;
TRACE
(
"(%p, %p, %p, %08x, %08x): stub
\n
"
,
hRequest
,
lpBuffersIn
,
lpBuffersOut
,
dwFlags
,
dwContext
);
...
...
@@ -1700,16 +1701,15 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
{
headerlen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpBuffersIn
->
lpcszHeader
,
lpBuffersIn
->
dwHeadersLength
,
0
,
0
);
BuffersInW
.
lpcszHeader
=
HeapAlloc
(
GetProcessHeap
(),
0
,
headerlen
*
sizeof
(
WCHAR
));
if
(
!
BuffersInW
.
lpcszHeader
)
header
=
HeapAlloc
(
GetProcessHeap
(),
0
,
headerlen
*
sizeof
(
WCHAR
));
if
(
!
(
BuffersInW
.
lpcszHeader
=
header
))
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
BuffersInW
.
dwHeadersLength
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpBuffersIn
->
lpcszHeader
,
lpBuffersIn
->
dwHeadersLength
,
(
LPWSTR
)
BuffersInW
.
lpcszH
eader
,
headerlen
);
h
eader
,
headerlen
);
}
else
BuffersInW
.
lpcszHeader
=
NULL
;
...
...
@@ -1722,8 +1722,7 @@ BOOL WINAPI HttpSendRequestExA(HINTERNET hRequest,
rc
=
HttpSendRequestExW
(
hRequest
,
lpBuffersIn
?
&
BuffersInW
:
NULL
,
NULL
,
dwFlags
,
dwContext
);
if
(
lpBuffersIn
)
HeapFree
(
GetProcessHeap
(),
0
,(
LPVOID
)
BuffersInW
.
lpcszHeader
);
HeapFree
(
GetProcessHeap
(),
0
,
header
);
return
rc
;
}
...
...
@@ -1949,14 +1948,14 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
{
URL_COMPONENTSW
urlComponents
;
WCHAR
protocol
[
32
],
hostName
[
MAXHOSTNAME
],
userName
[
1024
];
static
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
0
};
static
const
WCHAR
szHttps
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
0
};
static
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
0
};
static
WCHAR
szHttps
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
's'
,
0
};
DWORD
url_length
=
0
;
LPWSTR
orig_url
;
LPWSTR
combined_url
;
urlComponents
.
dwStructSize
=
sizeof
(
URL_COMPONENTSW
);
urlComponents
.
lpszScheme
=
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
?
(
LPWSTR
)
szHttps
:
(
LPWSTR
)
szHttp
;
urlComponents
.
lpszScheme
=
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
?
szHttps
:
szHttp
;
urlComponents
.
dwSchemeLength
=
0
;
urlComponents
.
lpszHostName
=
lpwhs
->
lpszHostName
;
urlComponents
.
dwHostNameLength
=
0
;
...
...
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