зеркало из https://github.com/mozilla/pjs.git
nsBufferedStream::GetLength should return the data length instead of the write offset.
This commit is contained in:
Родитель
6c3e530532
Коммит
0c32c3376b
|
@ -231,7 +231,7 @@ nsresult nsBufferedStream::GetAvailableSpace(PRUint32 *aCount)
|
||||||
nsresult nsBufferedStream::GetLength(PRUint32 *aLength)
|
nsresult nsBufferedStream::GetLength(PRUint32 *aLength)
|
||||||
{
|
{
|
||||||
LockStream();
|
LockStream();
|
||||||
*aLength = m_WriteOffset;
|
*aLength = m_dataLength;
|
||||||
UnlockStream();
|
UnlockStream();
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -779,4 +779,3 @@ PRInt32 nsBlockingStream::ReadBuffer(char *aBuf, PRUint32 aCount)
|
||||||
|
|
||||||
return bytesRead;
|
return bytesRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче