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
a39761a6
Commit
a39761a6
authored
Oct 30, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Improve disk detection in MapUrlToZone.
parent
ed4527a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
sec_mgr.c
dlls/urlmon/sec_mgr.c
+3
-3
sec_mgr.c
dlls/urlmon/tests/sec_mgr.c
+5
-1
No files found.
dlls/urlmon/sec_mgr.c
View file @
a39761a6
...
...
@@ -543,11 +543,11 @@ static HRESULT map_security_uri_to_zone(IUri *uri, DWORD *zone)
else
path_start
=
path
;
if
((
(
ptr
=
strchrW
(
path_start
,
'\\'
))
||
(
ptr
=
strchrW
(
path_start
,
'/'
)))
&&
ptr
-
path_start
<
sizeof
(
root
)
/
sizeof
(
WCHAR
))
{
if
((
ptr
=
strchrW
(
path_start
,
':'
))
&&
ptr
-
path_start
+
1
<
sizeof
(
root
)
/
sizeof
(
WCHAR
))
{
UINT
type
;
memcpy
(
root
,
path_start
,
(
ptr
-
path_start
)
*
sizeof
(
WCHAR
));
root
[
ptr
-
path_start
]
=
0
;
memcpy
(
root
,
path_start
,
(
ptr
-
path_start
+
1
)
*
sizeof
(
WCHAR
));
root
[
ptr
-
path_start
+
1
]
=
0
;
type
=
GetDriveTypeW
(
root
);
...
...
dlls/urlmon/tests/sec_mgr.c
View file @
a39761a6
...
...
@@ -103,6 +103,8 @@ static const WCHAR url12[] = {'f','i','l','e',':','/','/','/','c',':','/','I','n
static
const
WCHAR
url13
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'g'
,
'o'
,
'o'
,
'g'
,
'l'
,
'e'
,
'.'
,
'c'
,
'o'
,
'm'
,
0
};
static
const
WCHAR
url14
[]
=
{
'z'
,
'i'
,
'p'
,
':'
,
't'
,
'e'
,
's'
,
't'
,
'i'
,
'n'
,
'g'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
'i'
,
'n'
,
'g'
,
0
};
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
url4e
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
's'
,
'o'
,
'm'
,
'e'
,
' '
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'j'
,
'p'
,
'g'
,
0
};
...
...
@@ -157,7 +159,9 @@ static struct secmgr_test {
{
url6
,
3
,
S_OK
,
sizeof
(
secid6
),
secid6
,
S_OK
},
{
url7
,
3
,
S_OK
,
sizeof
(
secid7
),
secid7
,
S_OK
},
{
url11
,
0
,
S_OK
,
sizeof
(
secid1
),
secid1
,
S_OK
},
{
url12
,
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
}
};
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