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
1db24bed
Commit
1db24bed
authored
Oct 06, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added IBinding::Abort implementation.
parent
f7910c93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
binding.c
dlls/urlmon/binding.c
+17
-3
No files found.
dlls/urlmon/binding.c
View file @
1db24bed
...
...
@@ -882,8 +882,19 @@ static ULONG WINAPI Binding_Release(IBinding *iface)
static
HRESULT
WINAPI
Binding_Abort
(
IBinding
*
iface
)
{
Binding
*
This
=
BINDING_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
state
&
BINDING_ABORTED
)
return
E_FAIL
;
hres
=
IInternetProtocol_Abort
(
This
->
protocol
,
E_ABORT
,
ERROR_SUCCESS
);
if
(
FAILED
(
hres
))
return
hres
;
This
->
state
|=
BINDING_ABORTED
;
return
S_OK
;
}
static
HRESULT
WINAPI
Binding_Suspend
(
IBinding
*
iface
)
...
...
@@ -1053,7 +1064,7 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
TRACE
(
"(%p)->(%d %u %u)
\n
"
,
This
,
bscf
,
progress
,
progress_max
);
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
BINDING_STOPPED
))
if
(
This
->
download_state
==
END_DOWNLOAD
||
(
This
->
state
&
(
BINDING_STOPPED
|
BINDING_ABORTED
)
))
return
;
if
(
This
->
stgmed_buf
->
file
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -1081,6 +1092,9 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
BINDSTATUS_DOWNLOADINGDATA
,
This
->
url
);
}
if
(
This
->
state
&
(
BINDING_STOPPED
|
BINDING_ABORTED
))
return
;
if
(
This
->
to_object
)
{
if
(
!
(
This
->
state
&
BINDING_OBJAVAIL
))
{
IBinding_AddRef
(
BINDING
(
This
));
...
...
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