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
60195ff6
Commit
60195ff6
authored
Dec 05, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Fixed fragment part handling in IInternetProtocolInfo::CombineUrl.
parent
fa53a8cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
protocol.c
dlls/itss/protocol.c
+3
-1
protocol.c
dlls/itss/tests/protocol.c
+6
-0
No files found.
dlls/itss/protocol.c
View file @
60195ff6
...
...
@@ -469,7 +469,9 @@ static HRESULT WINAPI ITSProtocolInfo_CombineUrl(IInternetProtocolInfo *iface,
if
(
strchrW
(
pwzRelativeUrl
,
':'
))
return
STG_E_INVALIDNAME
;
if
(
pwzRelativeUrl
[
0
]
!=
'/'
)
{
if
(
pwzRelativeUrl
[
0
]
==
'#'
)
{
base_end
+=
strlenW
(
base_end
);
}
else
if
(
pwzRelativeUrl
[
0
]
!=
'/'
)
{
ptr
=
strrchrW
(
base_end
,
'/'
);
if
(
ptr
)
base_end
=
ptr
+
1
;
...
...
dlls/itss/tests/protocol.c
View file @
60195ff6
...
...
@@ -483,6 +483,12 @@ static const struct {
{
"mk:@MSITStore:test.chm::/dir/blank.html"
,
"test.html"
,
0
,
S_OK
,
"mk:@MSITStore:test.chm::/dir/test.html"
},
{
"xxx:test.chm::/dir/blank.html"
,
"test.html"
,
0
,
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
NULL
},
{
"its:test.chm::/dir/blank.html"
,
"/test.html"
,
0
,
S_OK
,
"its:test.chm::/test.html"
},
{
"its:test.chm::/blank.html"
,
"#frag"
,
0
,
S_OK
,
"its:test.chm::/blank.html#frag"
},
{
"its:test.chm::/blank.html#hash"
,
"#frag"
,
0
,
S_OK
,
"its:test.chm::/blank.html#hash#frag"
},
{
"its:test.chm::/blank.html"
,
"test.html#frag"
,
0
,
S_OK
,
"its:test.chm::/test.html#frag"
},
{
"its:test.chm::/blank.html"
,
"/test.html#frag"
,
0
,
S_OK
,
"its:test.chm::/test.html#frag"
},
{
"its:test.chm::/blank.html"
,
"?query"
,
0
,
S_OK
,
"its:test.chm::/?query"
},
{
"its:test.chm::/blank.html#frag/blank"
,
"test.html"
,
0
,
S_OK
,
"its:test.chm::/blank.html#frag/test.html"
},
};
static
void
test_its_protocol_info
(
IInternetProtocol
*
protocol
)
...
...
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