urlmon: Ignore report_data call if binding is stopped.
This commit is contained in:
parent
c7b204e98a
commit
b105b084a2
|
@ -1200,7 +1200,7 @@ static void report_data(Binding *This, DWORD bscf, ULONG progress, ULONG progres
|
||||||
|
|
||||||
TRACE("(%p)->(%d %u %u)\n", This, bscf, progress, progress_max);
|
TRACE("(%p)->(%d %u %u)\n", This, bscf, progress, progress_max);
|
||||||
|
|
||||||
if(This->download_state == END_DOWNLOAD)
|
if(This->download_state == END_DOWNLOAD || (This->state & BINDING_STOPPED))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(GetCurrentThreadId() != This->apartment_thread)
|
if(GetCurrentThreadId() != This->apartment_thread)
|
||||||
|
|
|
@ -1201,8 +1201,7 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallback *iface, ULONG ulP
|
||||||
break;
|
break;
|
||||||
case BINDSTATUS_DOWNLOADINGDATA:
|
case BINDSTATUS_DOWNLOADINGDATA:
|
||||||
CHECK_EXPECT2(OnProgress_DOWNLOADINGDATA);
|
CHECK_EXPECT2(OnProgress_DOWNLOADINGDATA);
|
||||||
if(iface == &objbsc)
|
ok(iface != &objbsc, "unexpected call\n");
|
||||||
todo_wine ok(0, "unexpected call\n");
|
|
||||||
ok(download_state == DOWNLOADING, "Download state was %d, expected DOWNLOADING\n",
|
ok(download_state == DOWNLOADING, "Download state was %d, expected DOWNLOADING\n",
|
||||||
download_state);
|
download_state);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue