mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 08:46:31 +00:00
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);
|
||||
|
||||
if(This->download_state == END_DOWNLOAD)
|
||||
if(This->download_state == END_DOWNLOAD || (This->state & BINDING_STOPPED))
|
||||
return;
|
||||
|
||||
if(GetCurrentThreadId() != This->apartment_thread)
|
||||
|
@ -1201,8 +1201,7 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallback *iface, ULONG ulP
|
||||
break;
|
||||
case BINDSTATUS_DOWNLOADINGDATA:
|
||||
CHECK_EXPECT2(OnProgress_DOWNLOADINGDATA);
|
||||
if(iface == &objbsc)
|
||||
todo_wine ok(0, "unexpected call\n");
|
||||
ok(iface != &objbsc, "unexpected call\n");
|
||||
ok(download_state == DOWNLOADING, "Download state was %d, expected DOWNLOADING\n",
|
||||
download_state);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user