Jacek Caban : mshtml: Grow the buffer faster in BufferBSC_read_data.

Alexandre Julliard julliard at winehq.org
Fri Jul 27 13:13:55 CDT 2012


Module: wine
Branch: master
Commit: 16871c4c89390f2df3394629a3a1c914f9652c53
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=16871c4c89390f2df3394629a3a1c914f9652c53

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Jul 27 10:51:53 2012 +0200

mshtml: Grow the buffer faster in BufferBSC_read_data.

---

 dlls/mshtml/navigate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 878117f..8956dfd 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -851,7 +851,7 @@ static HRESULT BufferBSC_read_data(BSCallback *bsc, IStream *stream)
     }
 
     do {
-        if(This->bsc.readed == This->size) {
+        if(This->bsc.readed >= This->size) {
             This->size <<= 1;
             This->buf = heap_realloc(This->buf, This->size);
         }




More information about the wine-cvs mailing list