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
097811f2
Commit
097811f2
authored
May 09, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use COM aggregation for urlmon protocols in BindProtocol::StartEx.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5082e4df
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
26 deletions
+15
-26
binding.c
dlls/urlmon/binding.c
+1
-1
bindprot.c
dlls/urlmon/bindprot.c
+10
-20
session.c
dlls/urlmon/session.c
+1
-1
url.c
dlls/urlmon/tests/url.c
+2
-2
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-2
No files found.
dlls/urlmon/binding.c
View file @
097811f2
...
...
@@ -1510,7 +1510,7 @@ static HRESULT Binding_Create(IMoniker *mon, Binding *binding_ctx, IUri *uri, IB
ret
->
protocol
=
binding_ctx
->
protocol
;
IInternetProtocolEx_AddRef
(
&
ret
->
protocol
->
IInternetProtocolEx_iface
);
}
else
{
hres
=
create_binding_protocol
(
TRUE
,
&
ret
->
protocol
);
hres
=
create_binding_protocol
(
&
ret
->
protocol
);
if
(
FAILED
(
hres
))
{
WARN
(
"Could not get protocol handler
\n
"
);
IBinding_Release
(
&
ret
->
IBinding_iface
);
...
...
dlls/urlmon/bindprot.c
View file @
097811f2
...
...
@@ -528,25 +528,16 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
if
(
FAILED
(
hres
))
return
hres
;
if
(
This
->
from_urlmon
)
{
hres
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IInternetProtocol
,
(
void
**
)
&
protocol
);
IClassFactory_Release
(
cf
);
if
(
FAILED
(
hres
))
return
hres
;
protocol_unk
=
(
IUnknown
*
)
protocol
;
IUnknown_AddRef
(
protocol_unk
);
}
else
{
hres
=
IClassFactory_CreateInstance
(
cf
,
(
IUnknown
*
)
&
This
->
IInternetBindInfo_iface
,
&
IID_IUnknown
,
(
void
**
)
&
protocol_unk
);
IClassFactory_Release
(
cf
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IClassFactory_CreateInstance
(
cf
,
(
IUnknown
*
)
&
This
->
IInternetBindInfo_iface
,
&
IID_IUnknown
,
(
void
**
)
&
protocol_unk
);
IClassFactory_Release
(
cf
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IUnknown_QueryInterface
(
protocol_unk
,
&
IID_IInternetProtocol
,
(
void
**
)
&
protocol
);
if
(
FAILED
(
hres
))
{
IUnknown_Release
(
protocol_unk
);
return
hres
;
}
hres
=
IUnknown_QueryInterface
(
protocol_unk
,
&
IID_IInternetProtocol
,
(
void
**
)
&
protocol
);
if
(
FAILED
(
hres
))
{
IUnknown_Release
(
protocol_unk
);
return
hres
;
}
}
...
...
@@ -1508,7 +1499,7 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
BPServiceProvider_QueryService
};
HRESULT
create_binding_protocol
(
B
OOL
from_urlmon
,
B
indProtocol
**
protocol
)
HRESULT
create_binding_protocol
(
BindProtocol
**
protocol
)
{
BindProtocol
*
ret
=
heap_alloc_zero
(
sizeof
(
BindProtocol
));
...
...
@@ -1523,7 +1514,6 @@ HRESULT create_binding_protocol(BOOL from_urlmon, BindProtocol **protocol)
ret
->
default_protocol_handler
.
IInternetProtocolSink_iface
.
lpVtbl
=
&
InternetProtocolSinkHandlerVtbl
;
ret
->
ref
=
1
;
ret
->
from_urlmon
=
from_urlmon
;
ret
->
apartment_thread
=
GetCurrentThreadId
();
ret
->
notif_hwnd
=
get_notif_hwnd
();
ret
->
protocol_handler
=
&
ret
->
default_protocol_handler
.
IInternetProtocol_iface
;
...
...
dlls/urlmon/session.c
View file @
097811f2
...
...
@@ -439,7 +439,7 @@ static HRESULT WINAPI InternetSession_CreateBinding(IInternetSession *iface,
if
(
pBC
||
pUnkOuter
||
ppUnk
||
dwOption
)
FIXME
(
"Unsupported arguments
\n
"
);
hres
=
create_binding_protocol
(
FALSE
,
&
protocol
);
hres
=
create_binding_protocol
(
&
protocol
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/urlmon/tests/url.c
View file @
097811f2
...
...
@@ -2402,8 +2402,8 @@ static HRESULT WINAPI ProtocolCF_CreateInstance(IClassFactory *iface, IUnknown *
if
(
IsEqualGUID
(
&
IID_IInternetProtocolInfo
,
riid
))
return
E_NOINTERFACE
;
todo_wine
ok
(
outer
!=
NULL
,
"outer == NULL
\n
"
);
todo_wine
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
wine_dbgstr_guid
(
riid
));
ok
(
outer
!=
NULL
,
"outer == NULL
\n
"
);
ok
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
),
"unexpected riid %s
\n
"
,
wine_dbgstr_guid
(
riid
));
*
ppv
=
&
Protocol
;
return
S_OK
;
}
...
...
dlls/urlmon/urlmon_main.h
View file @
097811f2
...
...
@@ -195,7 +195,6 @@ typedef struct {
BOOL
reported_result
;
BOOL
reported_mime
;
BOOL
from_urlmon
;
DWORD
pi
;
DWORD
bscf
;
...
...
@@ -216,7 +215,7 @@ typedef struct {
BSTR
display_uri
;
}
BindProtocol
;
HRESULT
create_binding_protocol
(
B
OOL
,
B
indProtocol
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_binding_protocol
(
BindProtocol
**
)
DECLSPEC_HIDDEN
;
void
set_binding_sink
(
BindProtocol
*
,
IInternetProtocolSink
*
,
IInternetBindInfo
*
)
DECLSPEC_HIDDEN
;
typedef
struct
{
...
...
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