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
fe475d9e
Commit
fe475d9e
authored
Jan 01, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Check return value of InternetCrackUrl when checking referrer host.
parent
a39ac0a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
http.c
dlls/wininet/http.c
+3
-2
No files found.
dlls/wininet/http.c
View file @
fe475d9e
...
...
@@ -1441,13 +1441,14 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
WCHAR
buf
[
MAXHOSTNAME
];
URL_COMPONENTSW
UrlComponents
;
buf
[
0
]
=
'\0'
;
memset
(
&
UrlComponents
,
0
,
sizeof
UrlComponents
);
UrlComponents
.
dwStructSize
=
sizeof
UrlComponents
;
UrlComponents
.
lpszHostName
=
buf
;
UrlComponents
.
dwHostNameLength
=
MAXHOSTNAME
;
InternetCrackUrlW
(
lpszReferrer
,
0
,
0
,
&
UrlComponents
);
if
(
strlenW
(
UrlComponents
.
lpszHostName
))
if
(
InternetCrackUrlW
(
lpszReferrer
,
0
,
0
,
&
UrlComponents
)
&&
strlenW
(
UrlComponents
.
lpszHostName
))
HTTP_ProcessHeader
(
lpwhr
,
szHost
,
UrlComponents
.
lpszHostName
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
}
else
...
...
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