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:
anthonyd%netscape.com
2002-08-16 01:11:18 +00:00
parent 6802e3fd9d
commit 04c9507cab
2 changed files with 1 additions and 4 deletions

View File

@@ -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,

View File

@@ -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);