Jacek Caban : mshtml: Added nsInputStream::Read implementation.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 3 15:58:32 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 0fbb175d64da106bcc8d7c92e745bee4d518854d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0fbb175d64da106bcc8d7c92e745bee4d518854d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Aug  3 21:38:08 2006 +0200

mshtml: Added nsInputStream::Read implementation.

---

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

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 8dc4a14..ecd8333 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -108,8 +108,19 @@ static nsresult NSAPI nsInputStream_Read
                                          PRUint32 *_retval)
 {
     nsProtocolStream *This = NSINSTREAM_THIS(iface);
-    FIXME("(%p)->(%p %ld %p)\n", This, aBuf, aCount, _retval);
-    return NS_ERROR_NOT_IMPLEMENTED;
+
+    TRACE("(%p)->(%p %ld %p)\n", This, aBuf, aCount, _retval);
+
+    /* Gecko always calls Read with big enough buffer */
+    if(aCount < This->buf_size)
+        FIXME("aCount < This->buf_size\n");
+
+    *_retval = This->buf_size;
+    if(This->buf_size)
+        memcpy(aBuf, This->buf, This->buf_size);
+    This->buf_size = 0;
+
+    return NS_OK;
 }
 
 static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface,




More information about the wine-cvs mailing list