Misha Koshelev : urlmon:
Send BINDSTATUS_DOWNLOADINGDATA if we do not send BEGINDOWNLOADDATA or
ENDDOWNLOADDATA .
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 3 08:04:54 CDT 2007
Module: wine
Branch: master
Commit: b2beeea5b21aff8fee18f110ea19f13adc32189d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b2beeea5b21aff8fee18f110ea19f13adc32189d
Author: Misha Koshelev <mk144210 at bcm.edu>
Date: Thu Aug 2 20:46:58 2007 -0500
urlmon: Send BINDSTATUS_DOWNLOADINGDATA if we do not send BEGINDOWNLOADDATA or ENDDOWNLOADDATA.
---
dlls/urlmon/binding.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c
index 51105d3..acf96b6 100644
--- a/dlls/urlmon/binding.c
+++ b/dlls/urlmon/binding.c
@@ -912,6 +912,7 @@ static HRESULT WINAPI InternetProtocolSink_ReportProgress(IInternetProtocolSink
static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progress_max)
{
FORMATETC formatetc = {0, NULL, 1, -1, TYMED_ISTREAM};
+ BOOL sent_begindownloaddata = FALSE;
TRACE("(%p)->(%d %u %u)\n", This, bscf, progress, progress_max);
@@ -939,6 +940,7 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
fill_stream_buffer(This->stream);
This->download_state = DOWNLOADING;
+ sent_begindownloaddata = TRUE;
IBindStatusCallback_OnProgress(This->callback, progress, progress_max,
BINDSTATUS_BEGINDOWNLOADDATA, This->url);
}
@@ -947,6 +949,9 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
This->download_state = END_DOWNLOAD;
IBindStatusCallback_OnProgress(This->callback, progress, progress_max,
BINDSTATUS_ENDDOWNLOADDATA, This->url);
+ }else if(!sent_begindownloaddata) {
+ IBindStatusCallback_OnProgress(This->callback, progress, progress_max,
+ BINDSTATUS_DOWNLOADINGDATA, This->url);
}
if(!This->request_locked) {
More information about the wine-cvs
mailing list