зеркало из https://github.com/mozilla/pjs.git
fixing tinderbox orange
This commit is contained in:
Родитель
00954938bf
Коммит
729436b5d5
|
@ -208,7 +208,7 @@ nsInputStreamTransport::Read(char *buf, PRUint32 count, PRUint32 *result)
|
|||
{
|
||||
if (mFirstTime) {
|
||||
mFirstTime = PR_FALSE;
|
||||
if (mOffset == nsUint64(0)) {
|
||||
if (mOffset != nsUint64(0)) {
|
||||
// read from current position if offset equal to max
|
||||
if (mOffset != LL_MAXUINT) {
|
||||
nsCOMPtr<nsISeekableStream> seekable = do_QueryInterface(mSource);
|
||||
|
@ -410,7 +410,7 @@ nsOutputStreamTransport::Write(const char *buf, PRUint32 count, PRUint32 *result
|
|||
{
|
||||
if (mFirstTime) {
|
||||
mFirstTime = PR_FALSE;
|
||||
if (!!mOffset) {
|
||||
if (mOffset != nsUint64(0)) {
|
||||
// write to current position if offset equal to max
|
||||
if (mOffset != LL_MAXUINT) {
|
||||
nsCOMPtr<nsISeekableStream> seekable = do_QueryInterface(mSink);
|
||||
|
|
Загрузка…
Ссылка в новой задаче