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
3fec8d9e
Commit
3fec8d9e
authored
Aug 26, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Aug 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Return failures from progress callback.
parent
af60f4bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
download.c
dlls/urlmon/download.c
+7
-7
No files found.
dlls/urlmon/download.c
View file @
3fec8d9e
...
...
@@ -119,22 +119,22 @@ static HRESULT WINAPI DownloadBSC_OnLowResource(IBindStatusCallback *iface, DWOR
return
E_NOTIMPL
;
}
static
void
on_progress
(
DownloadBSC
*
This
,
ULONG
progress
,
ULONG
progress_max
,
ULONG
status_code
,
LPCWSTR
status_text
)
static
HRESULT
on_progress
(
DownloadBSC
*
This
,
ULONG
progress
,
ULONG
progress_max
,
ULONG
status_code
,
LPCWSTR
status_text
)
{
HRESULT
hres
;
if
(
!
This
->
callback
)
return
;
return
S_OK
;
hres
=
IBindStatusCallback_OnProgress
(
This
->
callback
,
progress
,
progress_max
,
status_code
,
status_text
);
if
(
FAILED
(
hres
))
FIXME
(
"OnProgress failed: %08x
\n
"
,
hres
);
return
hres
;
}
static
HRESULT
WINAPI
DownloadBSC_OnProgress
(
IBindStatusCallback
*
iface
,
ULONG
ulProgress
,
ULONG
ulProgressMax
,
ULONG
ulStatusCode
,
LPCWSTR
szStatusText
)
{
DownloadBSC
*
This
=
STATUSCLB_THIS
(
iface
);
HRESULT
hres
=
S_OK
;
TRACE
(
"%p)->(%u %u %u %s)
\n
"
,
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
debugstr_w
(
szStatusText
));
...
...
@@ -146,11 +146,11 @@ static HRESULT WINAPI DownloadBSC_OnProgress(IBindStatusCallback *iface, ULONG u
case
BINDSTATUS_ENDDOWNLOADDATA
:
case
BINDSTATUS_SENDINGREQUEST
:
case
BINDSTATUS_MIMETYPEAVAILABLE
:
on_progress
(
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
szStatusText
);
hres
=
on_progress
(
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
szStatusText
);
break
;
case
BINDSTATUS_CACHEFILENAMEAVAILABLE
:
on_progress
(
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
szStatusText
);
hres
=
on_progress
(
This
,
ulProgress
,
ulProgressMax
,
ulStatusCode
,
szStatusText
);
This
->
cache_file
=
heap_strdupW
(
szStatusText
);
break
;
...
...
@@ -161,7 +161,7 @@ static HRESULT WINAPI DownloadBSC_OnProgress(IBindStatusCallback *iface, ULONG u
FIXME
(
"Unsupported status %u
\n
"
,
ulStatusCode
);
}
return
S_OK
;
return
hres
;
}
static
HRESULT
WINAPI
DownloadBSC_OnStopBinding
(
IBindStatusCallback
*
iface
,
...
...
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