aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozDownload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/MozDownload.cpp')
-rw-r--r--embed/mozilla/MozDownload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index b3cc63ec8..c59d72b33 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -349,8 +349,8 @@ MozDownload::OnProgressChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
if (mMaxSize >= 0 &&
- ((aMaxTotalProgress > 0 && mMaxSize > aMaxTotalProgress) ||
- mMaxSize > aCurTotalProgress))
+ ((aMaxTotalProgress > 0 && mMaxSize < aMaxTotalProgress) ||
+ mMaxSize < aCurTotalProgress))
{
Cancel ();
}