fix for bug #135292. fix for unsigned int being compared to -1
r=serge sr=darin git-svn-id: svn://10.0.0.236/trunk@127437 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -255,9 +255,6 @@ ns4xPluginStreamListener::OnStartBinding(nsIPluginStreamInfo* pluginInfo)
|
||||
|
||||
mStreamInfo = pluginInfo;
|
||||
|
||||
// if we don't know the end of the stream, use 0 instead of -1. bug 59571
|
||||
if (mNPStream.end == -1)
|
||||
mNPStream.end = 0;
|
||||
|
||||
NS_TRY_SAFE_CALL_RETURN(error, CallNPP_NewStreamProc(callbacks->newstream,
|
||||
npp,
|
||||
|
||||
@@ -2247,7 +2247,7 @@ nsPluginStreamListenerPeer::OnStartRequest(nsIRequest *request, nsISupports* aCo
|
||||
// it's possible for the server to not send a Content-Length. We should
|
||||
// still work in this case.
|
||||
if (NS_FAILED(rv)) {
|
||||
mPluginStreamInfo->SetLength(PRUint32(-1));
|
||||
mPluginStreamInfo->SetLength(PRUint32(0));
|
||||
}
|
||||
else {
|
||||
mPluginStreamInfo->SetLength(length);
|
||||
|
||||
Reference in New Issue
Block a user