mshtml: Always read data in OnDataAvailable.

This commit is contained in:
Jacek Caban 2007-03-02 02:20:08 +01:00 committed by Alexandre Julliard
parent 74d49757c7
commit ff3b2780ec
1 changed files with 7 additions and 0 deletions

View File

@ -424,6 +424,13 @@ static HRESULT WINAPI BindStatusCallback_OnDataAvailable(IBindStatusCallback *if
This->readed += This->nsstream->buf_size;
}while(hres == S_OK);
}else {
BYTE buf[1024];
DWORD read;
do {
read = 0;
hres = IStream_Read(pstgmed->u.pstm, buf, sizeof(buf), &read);
}while(hres == S_OK && read);
}
return S_OK;