зеркало из https://github.com/mozilla/pjs.git
Fixes bug 71346. Can't upload large files. r=gagan, sr=mscott.
This commit is contained in:
Родитель
73afe96e68
Коммит
945ace2667
|
@ -175,14 +175,12 @@ nsHTTPEncodeStream::ReadSegments(nsWriteSegmentFun writer, void * closure, PRUin
|
|||
|
||||
nsresult rv = Read (readBuf, count, &nBytes);
|
||||
|
||||
PRUint32 writeCount = 0;
|
||||
*_retval = 0;
|
||||
|
||||
if (NS_SUCCEEDED (rv))
|
||||
rv = writer (this, closure, readBuf, *_retval, nBytes, &writeCount);
|
||||
rv = writer (this, closure, readBuf, *_retval, nBytes, _retval);
|
||||
|
||||
PR_Free (readBuf);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче