Commit d464e7b5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Write aCount bytes in nsIInputStream::ReadSegments.

parent bbd4a634
...@@ -180,10 +180,10 @@ static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface, ...@@ -180,10 +180,10 @@ static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface,
if(!This->buf_size) if(!This->buf_size)
return S_OK; return S_OK;
if(This->buf_size > aCount) if(aCount > This->buf_size)
FIXME("buf_size > aCount\n"); 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)) if(NS_FAILED(nsres))
TRACE("aWritter failed: %08x\n", nsres); TRACE("aWritter failed: %08x\n", nsres);
else if(written != This->buf_size) else if(written != This->buf_size)
......
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