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
7d369354
Commit
7d369354
authored
Feb 09, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix map_url_to_zone implementation.
parent
07162a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
sec_mgr.c
dlls/urlmon/sec_mgr.c
+10
-4
No files found.
dlls/urlmon/sec_mgr.c
View file @
7d369354
...
@@ -147,12 +147,18 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone, LPWSTR *ret_url)
...
@@ -147,12 +147,18 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone, LPWSTR *ret_url)
DWORD
size
=
0
;
DWORD
size
=
0
;
HRESULT
hres
;
HRESULT
hres
;
secur_url
=
heap_alloc
(
INTERNET_MAX_URL_LENGTH
*
sizeof
(
WCHAR
));
*
zone
=
-
1
;
*
zone
=
-
1
;
hres
=
CoInternetParseUrl
(
url
,
PARSE_SECURITY_URL
,
0
,
secur_url
,
INTERNET_MAX_URL_LENGTH
,
&
size
,
0
);
hres
=
CoInternetGetSecurityUrl
(
url
,
&
secur_url
,
PSU_SECURITY_URL_ONLY
,
0
);
if
(
hres
!=
S_OK
)
if
(
hres
!=
S_OK
)
{
strcpyW
(
secur_url
,
url
);
size
=
strlenW
(
url
)
*
sizeof
(
WCHAR
);
secur_url
=
heap_alloc
(
size
);
if
(
!
secur_url
)
return
E_OUTOFMEMORY
;
memcpy
(
secur_url
,
url
,
size
);
}
hres
=
CoInternetParseUrl
(
secur_url
,
PARSE_SCHEMA
,
0
,
schema
,
sizeof
(
schema
)
/
sizeof
(
WCHAR
),
&
size
,
0
);
hres
=
CoInternetParseUrl
(
secur_url
,
PARSE_SCHEMA
,
0
,
schema
,
sizeof
(
schema
)
/
sizeof
(
WCHAR
),
&
size
,
0
);
if
(
FAILED
(
hres
)
||
!*
schema
)
{
if
(
FAILED
(
hres
)
||
!*
schema
)
{
...
...
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