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
bb52f14d
Commit
bb52f14d
authored
Dec 12, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use pluggable protocol in CoInternetCompareUrl.
parent
35e0e994
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
6 deletions
+36
-6
internet.c
dlls/urlmon/internet.c
+21
-0
misc.c
dlls/urlmon/tests/misc.c
+15
-0
urlmon_main.c
dlls/urlmon/urlmon_main.c
+0
-6
No files found.
dlls/urlmon/internet.c
View file @
bb52f14d
...
...
@@ -236,3 +236,24 @@ HRESULT WINAPI CoInternetCombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl,
return
hres
;
}
/**************************************************************************
* CoInternetCompareUrl (URLMON.@)
*/
HRESULT
WINAPI
CoInternetCompareUrl
(
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
IInternetProtocolInfo
*
protocol_info
;
HRESULT
hres
;
TRACE
(
"(%s,%s,%08x)
\n
"
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
protocol_info
=
get_protocol_info
(
pwzUrl1
);
if
(
protocol_info
)
{
hres
=
IInternetProtocolInfo_CompareUrl
(
protocol_info
,
pwzUrl1
,
pwzUrl2
,
dwCompareFlags
);
if
(
SUCCEEDED
(
hres
))
return
hres
;
}
return
UrlCompareW
(
pwzUrl1
,
pwzUrl2
,
dwCompareFlags
)
?
S_FALSE
:
S_OK
;
}
dlls/urlmon/tests/misc.c
View file @
bb52f14d
...
...
@@ -328,6 +328,20 @@ static void test_CoInternetParseUrl(void)
}
}
static
void
test_CoInternetCompareUrl
(
void
)
{
HRESULT
hres
;
hres
=
CoInternetCompareUrl
(
url1
,
url1
,
0
);
ok
(
hres
==
S_OK
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
hres
=
CoInternetCompareUrl
(
url1
,
url3
,
0
);
ok
(
hres
==
S_FALSE
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
hres
=
CoInternetCompareUrl
(
url3
,
url1
,
0
);
ok
(
hres
==
S_FALSE
,
"CoInternetParseUrl failed: %08x
\n
"
,
hres
);
}
static
const
WCHAR
mimeTextHtml
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'h'
,
't'
,
'm'
,
'l'
,
0
};
static
const
WCHAR
mimeTextPlain
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'p'
,
'l'
,
'a'
,
'i'
,
'n'
,
0
};
static
const
WCHAR
mimeAppOctetStream
[]
=
{
'a'
,
'p'
,
'p'
,
'l'
,
'i'
,
'c'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
'/'
,
...
...
@@ -1081,6 +1095,7 @@ START_TEST(misc)
test_CreateFormatEnum
();
test_RegisterFormatEnumerator
();
test_CoInternetParseUrl
();
test_CoInternetCompareUrl
();
test_FindMimeFromData
();
test_SecurityManager
();
test_ZoneManager
();
...
...
dlls/urlmon/urlmon_main.c
View file @
bb52f14d
...
...
@@ -303,12 +303,6 @@ HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPSTR pcszUAOut, DWORD *cbS
return
S_OK
;
}
HRESULT
WINAPI
CoInternetCompareUrl
(
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
TRACE
(
"(%s,%s,%08x)
\n
"
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
return
UrlCompareW
(
pwzUrl1
,
pwzUrl2
,
dwCompareFlags
)
==
0
?
S_OK
:
S_FALSE
;
}
/**************************************************************************
* IsValidURL (URLMON.@)
*
...
...
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