Commit 0fbb175d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added nsInputStream::Read implementation.

parent f0dc9def
......@@ -108,8 +108,19 @@ static nsresult NSAPI nsInputStream_Read(nsIInputStream *iface, char *aBuf, PRUi
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment