Fix NS_InputStreamIsBuffered to detect buffered empty streams correctly. Bug
368328, patch by Ryan Jones <sciguyryan@gmail.com>, r=bsmedberg, sr=biesi git-svn-id: svn://10.0.0.236/trunk@227701 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
59d86815f0
commit
0921e70a83
@ -608,8 +608,9 @@ NS_InputStreamIsBuffered(nsIInputStream *stream)
|
||||
{
|
||||
PRBool result = PR_FALSE;
|
||||
PRUint32 n;
|
||||
stream->ReadSegments(TestInputStream, &result, 1, &n);
|
||||
return result;
|
||||
nsresult rv = stream->ReadSegments(TestInputStream,
|
||||
&result, 1, &n);
|
||||
return result || NS_SUCCEEDED(rv);
|
||||
}
|
||||
|
||||
static NS_METHOD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user