mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
bug#99080 using plugger, makes the temp file huge; r=peterl; sr=dougt
This commit is contained in:
parent
d74f74e1cc
commit
4885cc958f
@ -2106,7 +2106,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnDataAvailable(nsIRequest *request,
|
||||
// if we are caching this to disk ourselves, lets write the bytes out.
|
||||
nsCOMPtr<nsIOutputStream> outStream;
|
||||
mPluginStreamInfo->GetLocalCachedFileStream(getter_AddRefs(outStream));
|
||||
while (outStream && amountWrote <= amountRead && NS_SUCCEEDED(rv))
|
||||
while (outStream && amountWrote < amountRead && NS_SUCCEEDED(rv))
|
||||
rv = outStream->Write(buffer, amountRead, &amountWrote);
|
||||
delete [] buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user