mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user