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
79b7c110
Commit
79b7c110
authored
Mar 26, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed handling URIs with implicit file scheme in CoInternetCombineUrlEx.
parent
96ace8cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
2 deletions
+82
-2
uri.c
dlls/urlmon/tests/uri.c
+80
-0
uri.c
dlls/urlmon/uri.c
+2
-2
No files found.
dlls/urlmon/tests/uri.c
View file @
79b7c110
...
...
@@ -360,6 +360,31 @@ static const uri_properties uri_tests[] = {
{
URLZONE_INVALID
,
E_NOTIMPL
,
FALSE
}
}
},
{
"file:///z:/test dir/README.txt"
,
0
,
S_OK
,
FALSE
,
{
{
"file:///z:/test%20dir/README.txt"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///z:/test%20dir/README.txt"
,
S_OK
},
{
""
,
S_FALSE
},
{
".txt"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"/z:/test%20dir/README.txt"
,
S_OK
},
{
"/z:/test%20dir/README.txt"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///z:/test dir/README.txt"
,
S_OK
},
{
"file"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_UNKNOWN
,
S_OK
,
FALSE
},
{
0
,
S_FALSE
,
FALSE
},
{
URL_SCHEME_FILE
,
S_OK
,
FALSE
},
{
URLZONE_INVALID
,
E_NOTIMPL
,
FALSE
}
}
},
{
"urn:nothing:should:happen here"
,
0
,
S_OK
,
FALSE
,
{
{
"urn:nothing:should:happen here"
,
S_OK
,
FALSE
},
...
...
@@ -6926,7 +6951,62 @@ static const uri_combine_test uri_combine_tests[] = {
{
URL_SCHEME_HTTP
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"http://google.com/test"
,
0
,
"c:
\\
test
\\
"
,
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
S_OK
,
FALSE
,
{
{
"file:///c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"/c:/test/"
,
S_OK
},
{
"/c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
"c:
\\
test
\\
"
,
S_OK
,
FALSE
,
"file:///c:/test/"
},
{
"file"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_UNKNOWN
,
S_OK
},
{
0
,
S_FALSE
},
{
URL_SCHEME_FILE
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
},
{
"http://google.com/test"
,
0
,
"c:
\\
test
\\
"
,
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
S_OK
,
FALSE
,
{
{
"file:///c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
"file:///c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
},
{
"/c:/test/"
,
S_OK
},
{
"/c:/test/"
,
S_OK
},
{
""
,
S_FALSE
},
{
"c:
\\
test
\\
"
,
S_OK
,
FALSE
,
"file:///c:/test/"
},
{
"file"
,
S_OK
},
{
""
,
S_FALSE
},
{
""
,
S_FALSE
}
},
{
{
Uri_HOST_UNKNOWN
,
S_OK
},
{
0
,
S_FALSE
},
{
URL_SCHEME_FILE
,
S_OK
},
{
URLZONE_INVALID
,
E_NOTIMPL
}
}
}
};
typedef
struct
_uri_parse_test
{
...
...
dlls/urlmon/uri.c
View file @
79b7c110
...
...
@@ -6461,7 +6461,7 @@ static HRESULT combine_uri(Uri *base, Uri *relative, DWORD flags, IUri **result,
return
E_OUTOFMEMORY
;
}
parse_uri
(
&
data
,
0
);
parse_uri
(
&
data
,
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
);
hr
=
Uri_Construct
(
NULL
,
(
void
**
)
&
ret
);
if
(
FAILED
(
hr
))
{
...
...
@@ -6800,7 +6800,7 @@ HRESULT WINAPI CoInternetCombineUrlEx(IUri *pBaseUri, LPCWSTR pwzRelativeUrl, DW
}
}
hr
=
CreateUri
(
pwzRelativeUrl
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
&
relative
);
hr
=
CreateUri
(
pwzRelativeUrl
,
Uri_CREATE_ALLOW_RELATIVE
|
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
&
relative
);
if
(
FAILED
(
hr
))
{
*
ppCombinedUri
=
NULL
;
return
hr
;
...
...
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