urlmon: Fixed bscf for ReportData after mime verification call.

This commit is contained in:
Jacek Caban 2009-08-21 00:15:14 +02:00 committed by Alexandre Julliard
parent 3d03ccf253
commit 094c0104f0
1 changed files with 4 additions and 0 deletions

View File

@ -1060,6 +1060,10 @@ static HRESULT report_data(BindProtocol *This, DWORD bscf, ULONG progress, ULONG
if(This->buf_size < MIME_TEST_SIZE && hres != S_FALSE)
return S_OK;
bscf = BSCF_FIRSTDATANOTIFICATION;
if(hres == S_FALSE)
bscf |= BSCF_LASTDATANOTIFICATION|BSCF_DATAFULLYAVAILABLE;
if(!This->reported_mime) {
hres = FindMimeFromData(NULL, This->url, This->buf, min(This->buf_size, MIME_TEST_SIZE),
This->mime, 0, &mime, 0);