urlmon: Make suse that every OnProgress call is in an apartment thread.

This commit is contained in:
Jacek Caban 2006-05-31 19:43:01 +02:00 committed by Alexandre Julliard
parent 9a1e6aae55
commit 89d9287af6
1 changed files with 3 additions and 6 deletions

View File

@ -773,18 +773,15 @@ static HRESULT WINAPI InternetProtocolSink_ReportData(IInternetProtocolSink *ifa
FindMimeFromData(NULL, This->url, This->stream->buf, FindMimeFromData(NULL, This->url, This->stream->buf,
min(This->stream->buf_size, 255), This->mime, 0, &mime, 0); min(This->stream->buf_size, 255), This->mime, 0, &mime, 0);
IBindStatusCallback_OnProgress(This->callback, ulProgress, ulProgressMax, on_progress(This, ulProgress, ulProgressMax, BINDSTATUS_MIMETYPEAVAILABLE, mime);
BINDSTATUS_MIMETYPEAVAILABLE, mime);
} }
if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) { if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) {
IBindStatusCallback_OnProgress(This->callback, ulProgress, ulProgressMax, on_progress(This, ulProgress, ulProgressMax, BINDSTATUS_BEGINDOWNLOADDATA, This->url);
BINDSTATUS_BEGINDOWNLOADDATA, This->url);
} }
if(grfBSCF & BSCF_LASTDATANOTIFICATION) if(grfBSCF & BSCF_LASTDATANOTIFICATION)
IBindStatusCallback_OnProgress(This->callback, ulProgress, ulProgressMax, on_progress(This, ulProgress, ulProgressMax, BINDSTATUS_ENDDOWNLOADDATA, This->url);
BINDSTATUS_ENDDOWNLOADDATA, This->url);
if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) if(grfBSCF & BSCF_FIRSTDATANOTIFICATION)
IInternetProtocol_LockRequest(This->protocol, 0); IInternetProtocol_LockRequest(This->protocol, 0);