mshtml: Write aCount bytes in nsIInputStream::ReadSegments.
This commit is contained in:
parent
bbd4a63491
commit
d464e7b546
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue