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
ab6adcb0
Commit
ab6adcb0
authored
Jan 11, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Reimplement CoInternetCombineUrl to use pluggable protocol.
parent
0d57265a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
14 deletions
+36
-14
internet.c
dlls/urlmon/internet.c
+36
-1
urlmon_main.c
dlls/urlmon/urlmon_main.c
+0
-13
No files found.
dlls/urlmon/internet.c
View file @
ab6adcb0
...
...
@@ -166,7 +166,9 @@ static HRESULT parse_security_domain(LPCWSTR url, DWORD flags, LPWSTR result,
return
E_FAIL
;
}
/**************************************************************************
* CoInternetParseUrl (URLMON.@)
*/
HRESULT
WINAPI
CoInternetParseUrl
(
LPCWSTR
pwzUrl
,
PARSEACTION
ParseAction
,
DWORD
dwFlags
,
LPWSTR
pszResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
...
...
@@ -190,3 +192,36 @@ HRESULT WINAPI CoInternetParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD
return
E_NOTIMPL
;
}
/**************************************************************************
* CoInternetCombineUrl (URLMON.@)
*/
HRESULT
WINAPI
CoInternetCombineUrl
(
LPCWSTR
pwzBaseUrl
,
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
IInternetProtocolInfo
*
protocol_info
;
DWORD
size
=
cchResult
;
HRESULT
hres
;
TRACE
(
"(%s,%s,0x%08lx,%p,%ld,%p,%ld)
\n
"
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
protocol_info
=
get_protocol_info
(
pwzBaseUrl
);
if
(
protocol_info
)
{
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
pwzBaseUrl
,
pwzRelativeUrl
,
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
if
(
SUCCEEDED
(
hres
))
return
hres
;
}
hres
=
UrlCombineW
(
pwzBaseUrl
,
pwzRelativeUrl
,
pwzResult
,
&
size
,
dwCombineFlags
);
if
(
pcchResult
)
*
pcchResult
=
size
;
return
hres
;
}
dlls/urlmon/urlmon_main.c
View file @
ab6adcb0
...
...
@@ -293,19 +293,6 @@ HRESULT WINAPI ObtainUserAgentString(DWORD dwOption, LPSTR pcszUAOut, DWORD *cbS
return
S_OK
;
}
HRESULT
WINAPI
CoInternetCombineUrl
(
LPCWSTR
pwzBaseUrl
,
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
HRESULT
hres
;
DWORD
size
=
cchResult
;
TRACE
(
"(%s,%s,0x%08lx,%p,%ld,%p,%ld)
\n
"
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
hres
=
UrlCombineW
(
pwzBaseUrl
,
pwzRelativeUrl
,
pwzResult
,
&
size
,
dwCombineFlags
);
if
(
pcchResult
)
*
pcchResult
=
size
;
return
hres
;
}
HRESULT
WINAPI
CoInternetCompareUrl
(
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
TRACE
(
"(%s,%s,%08lx)
\n
"
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
...
...
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