mshtml: Write aCount bytes in nsIInputStream::ReadSegments.

This commit is contained in:
Jacek Caban 2008-12-18 14:08:47 +01:00 committed by Alexandre Julliard
parent bbd4a63491
commit d464e7b546

View File

@ -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)