Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
804a9d80
Commit
804a9d80
authored
Jan 31, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Handle implicit file scheme in MapUrlToZone and GetSecurityId functions.
parent
773c46b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
sec_mgr.c
dlls/urlmon/sec_mgr.c
+2
-2
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+3
-1
No files found.
dlls/urlmon/sec_mgr.c
View file @
804a9d80
...
...
@@ -602,7 +602,7 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone, LPWSTR *ret_url)
memcpy
(
secur_url
,
url
,
size
);
}
hres
=
CreateUri
(
secur_url
,
0
,
0
,
&
secur_uri
);
hres
=
CreateUri
(
secur_url
,
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
&
secur_uri
);
if
(
FAILED
(
hres
))
{
CoTaskMemFree
(
secur_url
);
return
hres
;
...
...
@@ -805,7 +805,7 @@ static HRESULT get_security_id_for_url(LPCWSTR url, BYTE *secid, DWORD *secid_le
if
(
FAILED
(
hres
))
return
hres
==
0x80041001
?
E_INVALIDARG
:
hres
;
hres
=
CreateUri
(
secur_url
,
0
,
0
,
&
uri
);
hres
=
CreateUri
(
secur_url
,
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
&
uri
);
CoTaskMemFree
(
secur_url
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/urlmon/tests/sec_mgr.c
View file @
804a9d80
...
...
@@ -105,6 +105,7 @@ static const WCHAR url14[] = {'z','i','p',':','t','e','s','t','i','n','g','.','c
static
const
WCHAR
url15
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'g'
,
'o'
,
'o'
,
'g'
,
'l'
,
'e'
,
'.'
,
'c'
,
'o'
,
'm'
,
'.'
,
'u'
,
'k'
,
0
};
static
const
WCHAR
url16
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'c'
,
':'
,
0
};
static
const
WCHAR
url17
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'c'
,
':'
,
'c'
,
'\\'
,
0
};
static
const
WCHAR
url18
[]
=
{
'c'
,
':'
,
'\\'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
static
const
WCHAR
url4e
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
's'
,
'o'
,
'm'
,
'e'
,
' '
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'j'
,
'p'
,
'g'
,
0
};
...
...
@@ -161,7 +162,8 @@ static struct secmgr_test {
{
url11
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url12
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url16
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url17
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
}
{
url17
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url18
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
}
};
static
int
strcmp_w
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
...
...
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