Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
3fec8d9e
Commit
3fec8d9e
authored
14 years ago
by
Juan Lang
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
urlmon: Return failures from progress callback.
parent
af60f4bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/urlmon/download.c
+7
-7
7 additions, 7 deletions
dlls/urlmon/download.c
with
7 additions
and
7 deletions
dlls/urlmon/download.c
+
7
−
7
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment