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
1fb705de
Commit
1fb705de
authored
Nov 16, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Don't set is_opaque for file URIs in validate_components.
parent
11835771
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
1 deletion
+66
-1
uri.c
dlls/urlmon/tests/uri.c
+64
-0
uri.c
dlls/urlmon/uri.c
+2
-1
No files found.
dlls/urlmon/tests/uri.c
View file @
1fb705de
...
...
@@ -5525,6 +5525,70 @@ static const uri_builder_test uri_builder_tests[] = {
0
,
INET_E_INVALID_URL
,
FALSE
,
0
,
INET_E_INVALID_URL
,
FALSE
,
0
,
0
,
0
,
INET_E_INVALID_URL
,
FALSE
},
{
"file:///c:/dir/file.html"
,
0
,
S_OK
,
FALSE
,
{
{
TRUE
,
NULL
,
NULL
,
Uri_PROPERTY_FRAGMENT
,
S_OK
},
},
{
FALSE
},
0
,
S_OK
,
FALSE
,
0
,
S_OK
,
FALSE
,
0
,
0
,
0
,
S_OK
,
FALSE
,
{
{
"file:///c:/dir/file.html"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/dir/file.html"
,
S_OK
},
{
""
,
S_FALSE
},
{
".html"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"/c:/dir/file.html"
,
S_OK
},
{
"/c:/dir/file.html"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/dir/file.html"
,
S_OK
},
{
"file"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_UNKNOWN
,
S_OK
},
{
0
,
S_FALSE
},
{
URL_SCHEME_FILE
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"file:///c:/dir/file.html"
,
0
,
S_OK
,
FALSE
,
{
{
TRUE
,
"#"
,
NULL
,
Uri_PROPERTY_FRAGMENT
,
S_OK
},
},
{
FALSE
},
0
,
S_OK
,
FALSE
,
0
,
S_OK
,
FALSE
,
0
,
0
,
0
,
S_OK
,
FALSE
,
{
{
"file:///c:/dir/file.html#"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/dir/file.html#"
,
S_OK
},
{
""
,
S_FALSE
},
{
".html"
,
S_OK
},
{
"#"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"/c:/dir/file.html"
,
S_OK
},
{
"/c:/dir/file.html"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/dir/file.html#"
,
S_OK
},
{
"file"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_UNKNOWN
,
S_OK
},
{
0
,
S_FALSE
},
{
URL_SCHEME_FILE
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
}
};
...
...
dlls/urlmon/uri.c
View file @
1fb705de
...
...
@@ -3941,7 +3941,8 @@ static HRESULT validate_components(const UriBuilder *builder, parse_data *data,
/* The URI is opaque if it doesn't have an authority component. */
if
(
!
data
->
is_relative
)
data
->
is_opaque
=
!
data
->
username
&&
!
data
->
password
&&
!
data
->
host
&&
!
data
->
has_port
;
data
->
is_opaque
=
!
data
->
username
&&
!
data
->
password
&&
!
data
->
host
&&
!
data
->
has_port
&&
data
->
scheme_type
!=
URL_SCHEME_FILE
;
else
data
->
is_opaque
=
!
data
->
host
&&
!
data
->
has_port
;
...
...
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