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
da6dbedb
Commit
da6dbedb
authored
Dec 28, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Release protocol sink in Terminate.
parent
2afdc8f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
bindprot.c
dlls/urlmon/bindprot.c
+29
-0
No files found.
dlls/urlmon/bindprot.c
View file @
da6dbedb
...
...
@@ -36,6 +36,8 @@ typedef struct {
IServiceProvider
*
service_provider
;
LONG
priority
;
BOOL
reported_result
;
}
BindProtocol
;
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
...
...
@@ -205,7 +207,18 @@ static HRESULT WINAPI BindProtocol_Terminate(IInternetProtocol *iface, DWORD dwO
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
dwOptions
);
if
(
!
This
->
reported_result
)
return
E_FAIL
;
IInternetProtocol_Terminate
(
This
->
protocol
,
0
);
set_binding_sink
(
PROTOCOL
(
This
),
NULL
);
if
(
This
->
bind_info
)
{
IInternetBindInfo_Release
(
This
->
bind_info
);
This
->
bind_info
=
NULL
;
}
return
S_OK
;
}
...
...
@@ -440,6 +453,14 @@ static HRESULT WINAPI BPInternetProtocolSink_Switch(IInternetProtocolSink *iface
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pProtocolData
);
TRACE
(
"flags %x state %x data %p cb %u
\n
"
,
pProtocolData
->
grfFlags
,
pProtocolData
->
dwState
,
pProtocolData
->
pData
,
pProtocolData
->
cbData
);
if
(
!
This
->
protocol_sink
)
{
IInternetProtocol_Continue
(
This
->
protocol
,
pProtocolData
);
return
S_OK
;
}
return
IInternetProtocolSink_Switch
(
This
->
protocol_sink
,
pProtocolData
);
}
...
...
@@ -482,6 +503,9 @@ static HRESULT WINAPI BPInternetProtocolSink_ReportData(IInternetProtocolSink *i
TRACE
(
"(%p)->(%d %u %u)
\n
"
,
This
,
grfBSCF
,
ulProgress
,
ulProgressMax
);
if
(
!
This
->
protocol_sink
)
return
S_OK
;
return
IInternetProtocolSink_ReportData
(
This
->
protocol_sink
,
grfBSCF
,
ulProgress
,
ulProgressMax
);
}
...
...
@@ -492,6 +516,11 @@ static HRESULT WINAPI BPInternetProtocolSink_ReportResult(IInternetProtocolSink
TRACE
(
"(%p)->(%08x %d %s)
\n
"
,
This
,
hrResult
,
dwError
,
debugstr_w
(
szResult
));
if
(
!
This
->
protocol_sink
)
return
E_FAIL
;
This
->
reported_result
=
TRUE
;
return
IInternetProtocolSink_ReportResult
(
This
->
protocol_sink
,
hrResult
,
dwError
,
szResult
);
}
...
...
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