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
6744b9b4
Commit
6744b9b4
authored
Jan 05, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Query service provider for IInternetProtocol.
parent
25b54cbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
binding.c
dlls/urlmon/binding.c
+14
-0
No files found.
dlls/urlmon/binding.c
View file @
6744b9b4
...
...
@@ -44,6 +44,7 @@ typedef struct {
IBindStatusCallback
*
callback
;
IInternetProtocol
*
protocol
;
IServiceProvider
*
service_provider
;
IStream
*
stream
;
BINDINFO
bindinfo
;
...
...
@@ -112,6 +113,8 @@ static ULONG WINAPI Binding_Release(IBinding *iface)
IBindStatusCallback_Release
(
This
->
callback
);
if
(
This
->
protocol
)
IInternetProtocol_Release
(
This
->
protocol
);
if
(
This
->
service_provider
)
IServiceProvider_Release
(
This
->
service_provider
);
if
(
This
->
stream
)
IStream_Release
(
This
->
stream
);
...
...
@@ -459,6 +462,13 @@ static HRESULT get_protocol(Binding *This, LPCWSTR url)
if
(
SUCCEEDED
(
hres
))
return
S_OK
;
if
(
This
->
service_provider
)
{
hres
=
IServiceProvider_QueryService
(
This
->
service_provider
,
&
IID_IInternetProtocol
,
&
IID_IInternetProtocol
,
(
void
**
)
&
This
->
protocol
);
if
(
SUCCEEDED
(
hres
))
return
S_OK
;
}
hres
=
get_protocol_iface
(
url
,
&
unk
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -498,6 +508,7 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
ret
->
callback
=
NULL
;
ret
->
protocol
=
NULL
;
ret
->
service_provider
=
NULL
;
ret
->
stream
=
NULL
;
ret
->
mime
=
NULL
;
ret
->
url
=
NULL
;
...
...
@@ -513,6 +524,9 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
return
hres
;
}
IBindStatusCallback_QueryInterface
(
ret
->
callback
,
&
IID_IServiceProvider
,
(
void
**
)
&
ret
->
service_provider
);
hres
=
get_protocol
(
ret
,
url
);
if
(
FAILED
(
hres
))
{
WARN
(
"Could not get protocol handler
\n
"
);
...
...
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