Jacek Caban : mshtml: Write aCount bytes in nsIInputStream::ReadSegments.

Alexandre Julliard julliard at winehq.org
Thu Dec 18 08:08:59 CST 2008


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Dec 18 14:08:47 2008 +0100

mshtml: Write aCount bytes in nsIInputStream::ReadSegments.

---

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

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 0a543a7..188cdd7 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -180,10 +180,10 @@ static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface,
     if(!This->buf_size)
         return S_OK;
 
-    if(This->buf_size > aCount)
-        FIXME("buf_size > aCount\n");
+    if(aCount > This->buf_size)
+        aCount = This->buf_size;
 
-    nsres = aWriter(NSINSTREAM(This), aClousure, This->buf, 0, This->buf_size, &written);
+    nsres = aWriter(NSINSTREAM(This), aClousure, This->buf, 0, aCount, &written);
     if(NS_FAILED(nsres))
         TRACE("aWritter failed: %08x\n", nsres);
     else if(written != This->buf_size)




More information about the wine-cvs mailing list