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
357da1e8
Commit
357da1e8
authored
May 08, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Store aggregated protocol handler IUnknown in BindProtocol.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9823191a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
bindprot.c
dlls/urlmon/bindprot.c
+13
-5
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-0
No files found.
dlls/urlmon/bindprot.c
View file @
357da1e8
...
...
@@ -338,6 +338,10 @@ static void release_protocol_handler(BindProtocol *This)
IWinInetHttpInfo_Release
(
This
->
wininet_http_info
);
This
->
wininet_http_info
=
NULL
;
}
if
(
This
->
protocol_unk
)
{
IUnknown_Release
(
This
->
protocol_unk
);
This
->
protocol_unk
=
NULL
;
}
if
(
This
->
protocol
)
{
IInternetProtocol_Release
(
This
->
protocol
);
This
->
protocol
=
NULL
;
...
...
@@ -499,6 +503,7 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
IServiceProvider
*
service_provider
;
BOOL
urlmon_protocol
=
FALSE
;
CLSID
clsid
=
IID_NULL
;
IUnknown
*
protocol_unk
=
NULL
;
LPOLESTR
clsid_str
;
HRESULT
hres
;
...
...
@@ -527,7 +532,6 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
if
(
!
protocol
)
{
IClassFactory
*
cf
;
IUnknown
*
unk
;
hres
=
get_protocol_handler
(
pUri
,
&
clsid
,
&
urlmon_protocol
,
&
cf
);
if
(
FAILED
(
hres
))
...
...
@@ -538,17 +542,20 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
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
**
)
&
unk
);
&
IID_IUnknown
,
(
void
**
)
&
protocol_
unk
);
IClassFactory_Release
(
cf
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IInternetProtocol
,
(
void
**
)
&
protocol
);
IUnknown_Release
(
unk
);
if
(
FAILED
(
hres
))
hres
=
IUnknown_QueryInterface
(
protocol_
unk
,
&
IID_IInternetProtocol
,
(
void
**
)
&
protocol
);
if
(
FAILED
(
hres
))
{
IUnknown_Release
(
protocol_unk
);
return
hres
;
}
}
}
...
...
@@ -556,6 +563,7 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_PROTOCOLCLASSID
,
clsid_str
);
CoTaskMemFree
(
clsid_str
);
This
->
protocol_unk
=
protocol_unk
;
This
->
protocol
=
protocol
;
if
(
urlmon_protocol
)
{
...
...
dlls/urlmon/urlmon_main.h
View file @
357da1e8
...
...
@@ -176,6 +176,7 @@ typedef struct {
LONG
ref
;
IUnknown
*
protocol_unk
;
IInternetProtocol
*
protocol
;
IWinInetInfo
*
wininet_info
;
IWinInetHttpInfo
*
wininet_http_info
;
...
...
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