Module: wine Branch: master Commit: ff3b2780ec11873a54d6dd3be5c8460a87dd3486 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff3b2780ec11873a54d6dd3be5...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Mar 2 02:20:08 2007 +0100
mshtml: Always read data in OnDataAvailable.
---
dlls/mshtml/navigate.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c index a665ff0..44d74c9 100644 --- a/dlls/mshtml/navigate.c +++ b/dlls/mshtml/navigate.c @@ -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;