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
ebf9f12c
Commit
ebf9f12c
authored
May 12, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Make sure to include query part of relative URI containing path in combine_uri.
parent
2e46c671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
0 deletions
+86
-0
uri.c
dlls/urlmon/tests/uri.c
+81
-0
uri.c
dlls/urlmon/uri.c
+5
-0
No files found.
dlls/urlmon/tests/uri.c
View file @
ebf9f12c
...
...
@@ -6078,6 +6078,87 @@ static const uri_combine_test uri_combine_tests[] = {
{
URL_SCHEME_FILE
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"http://winehq.org/dir/testfile"
,
0
,
"test?querystring"
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
S_OK
,
FALSE
,
{
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
"/dir/test"
,
S_OK
},
{
"/dir/test?querystring"
,
S_OK
},
{
"?querystring"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"http"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_DNS
,
S_OK
},
{
80
,
S_OK
},
{
URL_SCHEME_HTTP
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"http://winehq.org/dir/test"
,
0
,
"test?querystring"
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
S_OK
,
FALSE
,
{
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
"/dir/test"
,
S_OK
},
{
"/dir/test?querystring"
,
S_OK
},
{
"?querystring"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring"
,
S_OK
},
{
"http"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_DNS
,
S_OK
},
{
80
,
S_OK
},
{
URL_SCHEME_HTTP
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"http://winehq.org/dir/test?querystring"
,
0
,
"#hash"
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
S_OK
,
FALSE
,
{
{
"http://winehq.org/dir/test?querystring#hash"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring#hash"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
"#hash"
,
S_OK
},
{
"winehq.org"
,
S_OK
},
{
""
,
S_FALSE
},
{
"/dir/test"
,
S_OK
},
{
"/dir/test?querystring"
,
S_OK
},
{
"?querystring"
,
S_OK
},
{
"http://winehq.org/dir/test?querystring#hash"
,
S_OK
},
{
"http"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_DNS
,
S_OK
},
{
80
,
S_OK
},
{
URL_SCHEME_HTTP
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
}
};
...
...
dlls/urlmon/uri.c
View file @
ebf9f12c
...
...
@@ -6006,6 +6006,11 @@ static HRESULT combine_uri(Uri *base, Uri *relative, DWORD flags, IUri **result,
}
}
if
(
relative
->
query_start
>
-
1
)
{
data
.
query
=
relative
->
canon_uri
+
relative
->
query_start
;
data
.
query_len
=
relative
->
query_len
;
}
/* Make sure the path component is valid. */
ptr
=
path
;
pptr
=
&
ptr
;
...
...
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